Commit 6dde472c authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor
Browse files

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)
parent 7aac398d
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> Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider * gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider
......
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> Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider * gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider
......
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> Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider * gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider
......
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> Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider * gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider
......
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> Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider * gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider
......
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> Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider * gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider
......
...@@ -145,6 +145,7 @@ struct _ColorSelectionPrivate ...@@ -145,6 +145,7 @@ struct _ColorSelectionPrivate
static void gtk_color_selection_init (GtkColorSelection *colorsel); static void gtk_color_selection_init (GtkColorSelection *colorsel);
static void gtk_color_selection_class_init (GtkColorSelectionClass *klass); static void gtk_color_selection_class_init (GtkColorSelectionClass *klass);
static void gtk_color_selection_destroy (GtkObject *object); static void gtk_color_selection_destroy (GtkObject *object);
static void gtk_color_selection_finalize (GObject *object);
static void update_color (GtkColorSelection *colorsel); static void update_color (GtkColorSelection *colorsel);
static void gtk_color_selection_set_property (GObject *object, static void gtk_color_selection_set_property (GObject *object,
guint prop_id, guint prop_id,
...@@ -1711,7 +1712,8 @@ gtk_color_selection_class_init (GtkColorSelectionClass *klass) ...@@ -1711,7 +1712,8 @@ gtk_color_selection_class_init (GtkColorSelectionClass *klass)
parent_class = gtk_type_class (GTK_TYPE_VBOX); parent_class = gtk_type_class (GTK_TYPE_VBOX);
object_class->destroy = gtk_color_selection_destroy; 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->set_property = gtk_color_selection_set_property;
gobject_class->get_property = gtk_color_selection_get_property; gobject_class->get_property = gtk_color_selection_get_property;
...@@ -1954,6 +1956,20 @@ gtk_color_selection_destroy (GtkObject *object) ...@@ -1954,6 +1956,20 @@ gtk_color_selection_destroy (GtkObject *object)
GTK_OBJECT_CLASS (parent_class)->destroy (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 static void
gtk_color_selection_realize (GtkWidget *widget) gtk_color_selection_realize (GtkWidget *widget)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment