fixed additional string
[livewp] / applet / src / livewp-settings.c
index c64de87..30857e1 100644 (file)
@@ -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");