[gnome-control-center/gnome-3-2] color: Fix a critical warning in the new GtkTreeIter code
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-2] color: Fix a critical warning in the new GtkTreeIter code
- Date: Fri, 21 Oct 2011 15:04:24 +0000 (UTC)
commit 4f0cca5e0a7ae9ea1db8d872296e1f0b5565f49f
Author: Richard Hughes <richard hughsie com>
Date: Fri Oct 21 16:01:37 2011 +0100
color: Fix a critical warning in the new GtkTreeIter code
panels/color/cc-color-panel.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c
index 3ff7f62..5e31479 100644
--- a/panels/color/cc-color-panel.c
+++ b/panels/color/cc-color-panel.c
@@ -1628,7 +1628,8 @@ skip:
GCM_PREFS_COLUMN_RADIO_VISIBLE, TRUE,
GCM_PREFS_COLUMN_RADIO_ACTIVE, i==0,
-1);
- gtk_tree_iter_free (iter_tmp_p);
+ if (iter_tmp_p != NULL)
+ gtk_tree_iter_free (iter_tmp_p);
g_free (title_tmp);
g_free (sort_tmp);
g_string_free (date_tmp, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]