actionmuxer: check for observer before unregistering
authorChristian Hergert <chergert@redhat.com>
Mon, 2 May 2022 22:33:34 +0000 (15:33 -0700)
committerChristian Hergert <chergert@redhat.com>
Wed, 11 May 2022 21:43:31 +0000 (14:43 -0700)
commit0382e3b46c1e68b8daf61baa3873fc1d50c56192
tree554983d0608ec8e5f5b05d0e08efcd7241b4e02f
parent547b2891cb2f35ef87528e022446a7be1a619d2f
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