diff options
author | Christian Hergert <chergert@redhat.com> | 2016-09-27 12:41:55 -0700 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2016-09-27 12:41:55 -0700 |
commit | 3c775eb2b808c6f7b1b7a6eab5fefe1085d74c5a (patch) | |
tree | a4575f6c3803265e43610a774a45f2a8b8391981 /gtk/gtktreeviewcolumn.c | |
parent | 8a7d0ab4813457088335685e956313afbd1d65a1 (diff) | |
download | gtk+-3c775eb2b808c6f7b1b7a6eab5fefe1085d74c5a.tar.gz |
treeviewcolumn: use g_clear_object when freeing cursor
There is the chance that the cursor returned NULL on systems
with missing cursors. This defensively handles that by checking
for a NULL cursor.
Diffstat (limited to 'gtk/gtktreeviewcolumn.c')
-rw-r--r-- | gtk/gtktreeviewcolumn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c index 055d938469..48b6fcd7c7 100644 --- a/gtk/gtktreeviewcolumn.c +++ b/gtk/gtktreeviewcolumn.c @@ -1349,7 +1349,7 @@ _gtk_tree_view_column_realize_button (GtkTreeViewColumn *column) gtk_tree_view_column_update_button (column); - g_object_unref (attr.cursor); + g_clear_object (&attr.cursor); } void |