From: Salvatore Iovene Date: Sun, 6 Dec 2009 14:53:37 +0000 (+0200) Subject: Avoid potential crash. X-Git-Tag: 0.0.1~1^2~24 X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=ff8c6eeec768aff4a333dbe47337cf68bb8806da;hp=f8e7d3ddcd054be716d3b38a8fb9a7a5c1d88f5c;p=tweakr Avoid potential crash. --- diff --git a/maemo-tweaks.c b/maemo-tweaks.c index 213c1a3..1fbff09 100644 --- a/maemo-tweaks.c +++ b/maemo-tweaks.c @@ -73,9 +73,11 @@ osso_return_t execute (osso_context_t *osso, gpointer data, 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; }