diff options
-rw-r--r-- | gtk/gtkcolorbutton.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkcolorbutton.c b/gtk/gtkcolorbutton.c index ae9afd14e2..027b384c53 100644 --- a/gtk/gtkcolorbutton.c +++ b/gtk/gtkcolorbutton.c @@ -567,6 +567,7 @@ dialog_response (GtkDialog *dialog, gtk_widget_queue_draw (button->priv->draw_area); + g_object_ref (button); g_signal_emit (button, color_button_signals[COLOR_SET], 0); g_object_freeze_notify (G_OBJECT (button)); @@ -574,6 +575,7 @@ dialog_response (GtkDialog *dialog, g_object_notify (G_OBJECT (button), "alpha"); g_object_notify (G_OBJECT (button), "rgba"); g_object_thaw_notify (G_OBJECT (button)); + g_object_unref (button); } } |