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:
Carlos Garnacho 2017-07-19 18:12:53 +02:00
parent a72c735b74
commit 4772fc2d42

View File

@ -11375,6 +11375,7 @@ gtk_window_update_pointer_focus (GtkWindow *window,
{
focus = gtk_pointer_focus_new (window, target, device, sequence, x, y);
gtk_window_add_pointer_focus (window, focus);
gtk_pointer_focus_unref (focus);
}
}