projects
/
tweakr
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Avoid potential crash.
[tweakr]
/
maemo-tweaks.c
diff --git
a/maemo-tweaks.c
b/maemo-tweaks.c
index
213c1a3
..
1fbff09
100644
(file)
--- 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;
}