X-Git-Url: http://git.maemo.org/git/?p=livewp;a=blobdiff_plain;f=applet%2Fsrc%2Flivewp-settings.c;h=30857e17e65100845d1daf61bd33f81c6c40ef0e;hp=c64de87e748a27b0910c31338fafb9591ae629a8;hb=edc3a3d45160bd352d88319423ce32645d0adf21;hpb=70156ab8146f5f554f7047d22cadebbec14ccf96 diff --git a/applet/src/livewp-settings.c b/applet/src/livewp-settings.c index c64de87..30857e1 100644 --- a/applet/src/livewp-settings.c +++ b/applet/src/livewp-settings.c @@ -844,6 +844,11 @@ lw_theme_settings(GtkWidget *button, Animation_WallpaperPrivate *priv) { } } #endif + if (priv->theme_string_parametr1){ + g_free(priv->theme_string_parametr1); + priv->theme_string_parametr1 = NULL; + } + if (priv->theme) g_free(priv->theme); if (!strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), _("Berlin"))) @@ -858,8 +863,6 @@ lw_theme_settings(GtkWidget *button, Animation_WallpaperPrivate *priv) { priv->theme = g_strdup("Video"); button1 = g_object_get_data(G_OBJECT(priv->window), "filename_button"); if (button1){ - if (priv->theme_string_parametr1) - g_free(priv->theme_string_parametr1); priv->theme_string_parametr1 = g_strdup((gchar*)hildon_button_get_value (HILDON_BUTTON(button1))); } temp_button = g_object_get_data(G_OBJECT(priv->window), "smoothing_button");