Free the private data. (#84903, Matthias Clasen)

Mon Oct  7 18:50:46 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkcolorsel.c (gtk_color_selection_finalize):
        Free the private data. (#84903, Matthias Clasen)
This commit is contained in:
Owen Taylor 2002-10-07 22:52:35 +00:00 committed by Owen Taylor
parent 7aac398d1e
commit 6dde472cbe
7 changed files with 47 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Mon Oct 7 18:50:46 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcolorsel.c (gtk_color_selection_finalize):
Free the private data. (#84903, Matthias Clasen)
Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider

View File

@ -1,3 +1,8 @@
Mon Oct 7 18:50:46 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcolorsel.c (gtk_color_selection_finalize):
Free the private data. (#84903, Matthias Clasen)
Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider

View File

@ -1,3 +1,8 @@
Mon Oct 7 18:50:46 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcolorsel.c (gtk_color_selection_finalize):
Free the private data. (#84903, Matthias Clasen)
Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider

View File

@ -1,3 +1,8 @@
Mon Oct 7 18:50:46 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcolorsel.c (gtk_color_selection_finalize):
Free the private data. (#84903, Matthias Clasen)
Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider

View File

@ -1,3 +1,8 @@
Mon Oct 7 18:50:46 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcolorsel.c (gtk_color_selection_finalize):
Free the private data. (#84903, Matthias Clasen)
Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider

View File

@ -1,3 +1,8 @@
Mon Oct 7 18:50:46 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcolorsel.c (gtk_color_selection_finalize):
Free the private data. (#84903, Matthias Clasen)
Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider

View File

@ -145,6 +145,7 @@ struct _ColorSelectionPrivate
static void gtk_color_selection_init (GtkColorSelection *colorsel);
static void gtk_color_selection_class_init (GtkColorSelectionClass *klass);
static void gtk_color_selection_destroy (GtkObject *object);
static void gtk_color_selection_finalize (GObject *object);
static void update_color (GtkColorSelection *colorsel);
static void gtk_color_selection_set_property (GObject *object,
guint prop_id,
@ -1711,6 +1712,7 @@ gtk_color_selection_class_init (GtkColorSelectionClass *klass)
parent_class = gtk_type_class (GTK_TYPE_VBOX);
object_class->destroy = gtk_color_selection_destroy;
gobject_class->finalize = gtk_color_selection_finalize;
gobject_class->set_property = gtk_color_selection_set_property;
gobject_class->get_property = gtk_color_selection_get_property;
@ -1954,6 +1956,20 @@ gtk_color_selection_destroy (GtkObject *object)
GTK_OBJECT_CLASS (parent_class)->destroy (object);
}
static void
gtk_color_selection_finalize (GObject *object)
{
GtkColorSelection *cselection = GTK_COLOR_SELECTION (object);
if (cselection->private_data)
{
g_free (cselection->private_data);
cselection->private_data = NULL;
}
G_OBJECT_CLASS (parent_class)->finalize (object);
}
static void
gtk_color_selection_realize (GtkWidget *widget)
{