mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-06 10:50:08 +00:00
gtkwindow: Do not leak GtkPointerFocus
gtk_window_add_pointer_focus() increments the refcount, which means the caller should be dropping its own.
This commit is contained in:
parent
a72c735b74
commit
4772fc2d42
@ -11375,6 +11375,7 @@ gtk_window_update_pointer_focus (GtkWindow *window,
|
|||||||
{
|
{
|
||||||
focus = gtk_pointer_focus_new (window, target, device, sequence, x, y);
|
focus = gtk_pointer_focus_new (window, target, device, sequence, x, y);
|
||||||
gtk_window_add_pointer_focus (window, focus);
|
gtk_window_add_pointer_focus (window, focus);
|
||||||
|
gtk_pointer_focus_unref (focus);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user