coloreditor: Don't unref unless we own it
authorMatthias Clasen <mclasen@redhat.com>
Mon, 27 Sep 2021 20:40:29 +0000 (16:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 31 Oct 2021 21:52:04 +0000 (17:52 -0400)
commita107ebdc0d29f7d1413e80c2bec9ca89449aef59
tree471c93d4abbb405c54d70b93377b8fce8af4400a
parent161259e9ea43d9bbbda19ecfe290a8e47288c47a
coloreditor: Don't unref unless we own it

Calling gtk_widget_class_bind_template_child does
*not* give you a reference that you need to unref.
It manages the reference for you. So calling
g_clear_object on such a member is wrong.
gtk/gtkcoloreditor.c