gtk: Hold reference on controller until events are fully handled
authorMaxim Zakharov <zakhma@muli.com.au>
Wed, 27 Oct 2021 00:37:36 +0000 (11:37 +1100)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 31 Oct 2021 21:52:05 +0000 (17:52 -0400)
commitf41d98d104762133c6dcf6aa8194b8a5a36f18fc
tree00c1c0b8f5f39f1a24794f120eec2acc01e2a4b4
parentb1943e03e66112349f50d0a2db12b436a53adc44
gtk: Hold reference on controller until events are fully handled

Fixes premature controller unreferencing in
gtk_event_controller_handle_event() if the controller itself is being
removed while handling the event.
gtk/gtkeventcontroller.c