Commit 3faef252 authored by Daniel P. Berrange's avatar Daniel P. Berrange

Fix leak of preferences strings

Signed-off-by: 's avatarDaniel P. Berrange <berrange@redhat.com>
parent dd0150f9
Pipeline #42273754 (#6) passed with stage
in 2 minutes and 28 seconds
......@@ -429,7 +429,8 @@ static void entangle_preferences_display_refresh(EntanglePreferencesDisplay *pre
EntanglePreferencesDisplayPrivate *priv = entangle_preferences_display_get_instance_private(preferences);
EntangleColourProfile *profile;
const gchar *ratio;
gchar *ratio;
gchar *pattern;
GtkAdjustment *adjust;
gboolean hasContinuousPreview;
gboolean hasRatio;
......@@ -458,7 +459,8 @@ static void entangle_preferences_display_refresh(EntanglePreferencesDisplay *pre
gtk_toggle_button_set_active(priv->interfaceHistogramLinear,
entangle_preferences_interface_get_histogram_linear(priv->prefs));
gtk_entry_set_text(priv->captureFilenamePattern, entangle_preferences_capture_get_filename_pattern(priv->prefs));
pattern = entangle_preferences_capture_get_filename_pattern(priv->prefs);
gtk_entry_set_text(priv->captureFilenamePattern, pattern);
hasContinuousPreview = entangle_preferences_capture_get_continuous_preview(priv->prefs);
gtk_toggle_button_set_active(priv->captureContinuousPreview, hasContinuousPreview);
......@@ -527,6 +529,9 @@ static void entangle_preferences_display_refresh(EntanglePreferencesDisplay *pre
gdk_rgba_parse(&ghl, hl);
gtk_color_chooser_set_rgba(priv->imgHighlight, &ghl);
g_free(hl);
g_free(ratio);
g_free(pattern);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment