File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -4395,6 +4395,7 @@ void dt_gui_cursor_set_busy()
4395
4395
GtkWidget * toplevel = darktable .gui -> ui -> main_window ;
4396
4396
GdkWindow * window = gtk_widget_get_window (toplevel );
4397
4397
busy_prev_cursor = gdk_window_get_cursor (window );
4398
+ g_object_ref (busy_prev_cursor );
4398
4399
GdkCursor * watch = gdk_cursor_new_for_display (gtk_widget_get_display (toplevel ), GDK_WATCH );
4399
4400
gdk_window_set_cursor (window , watch );
4400
4401
g_object_unref (watch );
@@ -4419,6 +4420,7 @@ void dt_gui_cursor_clear_busy()
4419
4420
GdkWindow * window = gtk_widget_get_window (toplevel );
4420
4421
gdk_window_set_cursor (window , busy_prev_cursor );
4421
4422
dt_gui_process_events ();
4423
+ g_object_unref (busy_prev_cursor );
4422
4424
busy_prev_cursor = NULL ;
4423
4425
dt_control_allow_change_cursor ();
4424
4426
gtk_grab_remove (darktable .control -> progress_system .proxy .module -> widget );
You can’t perform that action at this time.
0 commit comments