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.
This commit is contained in:
Christian Hergert 2016-09-27 12:41:55 -07:00
parent 8a7d0ab481
commit 3c775eb2b8

View File

@ -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