GtkColorButton: Don't leak references

https://bugzilla.gnome.org/show_bug.cgi?id=646815
This commit is contained in:
Matthias Clasen 2011-04-06 00:56:37 -04:00
parent cd68eaa73a
commit e32728fb5c

View File

@ -664,6 +664,9 @@ gtk_color_button_clicked (GtkButton *button)
G_CALLBACK (dialog_cancel_clicked), color_button);
g_signal_connect (color_dialog, "destroy",
G_CALLBACK (dialog_destroy), color_button);
g_object_unref (ok_button);
g_object_unref (cancel_button);
}
color_dialog = GTK_COLOR_SELECTION_DIALOG (color_button->priv->cs_dialog);