actionmuxer: check for observer before unregistering
authorChristian Hergert <chergert@redhat.com>
Mon, 2 May 2022 22:33:34 +0000 (15:33 -0700)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 12 May 2022 01:54:33 +0000 (21:54 -0400)
commit6d95ac92994f8c7562a43842cdd37bc261d40bf1
tree34ef31a5349da2d516efcc7f4c00835eb78a1198
parentce003f4eecaf4f5d5d4523c2242d2ca063e9238a
actionmuxer: check for observer before unregistering

This can happen if the group can be resolved even when doing the initial
registration of an action as observer will not yet be in the GSList of
watchers (and therefore has no weak references).

Fixes a warning like the following:

 g_object_weak_unref: couldn't find weak ref
gtk/gtkactionmuxer.c