forked from AuroraMiddleware/gtk
entry: handle NULL cursor when updating cursors
If we got a NULL cursor from gdk_cursor_new_from_name(), we need to handle that when unreffing.
This commit is contained in:
parent
7ecd337877
commit
b684b23c74
@ -3099,7 +3099,7 @@ update_cursors (GtkWidget *widget)
|
||||
display = gtk_widget_get_display (widget);
|
||||
cursor = gdk_cursor_new_from_name (display, "text");
|
||||
gdk_window_set_cursor (icon_info->window, cursor);
|
||||
g_object_unref (cursor);
|
||||
g_clear_object (&cursor);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user