response = gtk_dialog_run (GTK_DIALOG (dialog));
if (response == GTK_RESPONSE_OK)
{
+ /* Save all settings */
+ g_list_foreach (sections, (GFunc) maemo_tweaks_section_save, NULL);
}
gtk_widget_destroy (GTK_WIDGET (dialog));
g_object_unref (manager);
- g_list_foreach (sections, (GFunc) g_object_unref, NULL);
if (sections)
+ {
+ g_list_foreach (sections, (GFunc) g_object_unref, NULL);
g_list_free (sections);
+ }
return OSSO_OK;
}