forked from AuroraMiddleware/gtk
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:
parent
8a7d0ab481
commit
3c775eb2b8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user