Commit c3a163b0 authored by Tim Janik's avatar Tim Janik Committed by Tim Janik

use g_free to free g_malloced memory (Martin Pool

Tue Oct  6 14:05:00 1998  Tim Janik  <timj@gtk.org>

        * gtk/testgtk.c (cb_tree_destroy_event): use g_free to free g_malloced
        memory (Martin Pool <mbp@wistful.humbug.org.au>).
parent ecb9ebbc
Tue Oct 6 14:05:00 1998 Tim Janik <timj@gtk.org>
* gtk/testgtk.c (cb_tree_destroy_event): use g_free to free g_malloced
memory (Martin Pool <mbp@wistful.humbug.org.au>).
Mon Oct 5 15:26:30 1998 Raph Levien <raph@gimp.org>
* gdk/gdkrgb.c (gdk_rgb_convert_0888_br): Fixed a few long's that
......
Tue Oct 6 14:05:00 1998 Tim Janik <timj@gtk.org>
* gtk/testgtk.c (cb_tree_destroy_event): use g_free to free g_malloced
memory (Martin Pool <mbp@wistful.humbug.org.au>).
Mon Oct 5 15:26:30 1998 Raph Levien <raph@gimp.org>
* gdk/gdkrgb.c (gdk_rgb_convert_0888_br): Fixed a few long's that
......
Tue Oct 6 14:05:00 1998 Tim Janik <timj@gtk.org>
* gtk/testgtk.c (cb_tree_destroy_event): use g_free to free g_malloced
memory (Martin Pool <mbp@wistful.humbug.org.au>).
Mon Oct 5 15:26:30 1998 Raph Levien <raph@gimp.org>
* gdk/gdkrgb.c (gdk_rgb_convert_0888_br): Fixed a few long's that
......
Tue Oct 6 14:05:00 1998 Tim Janik <timj@gtk.org>
* gtk/testgtk.c (cb_tree_destroy_event): use g_free to free g_malloced
memory (Martin Pool <mbp@wistful.humbug.org.au>).
Mon Oct 5 15:26:30 1998 Raph Levien <raph@gimp.org>
* gdk/gdkrgb.c (gdk_rgb_convert_0888_br): Fixed a few long's that
......
Tue Oct 6 14:05:00 1998 Tim Janik <timj@gtk.org>
* gtk/testgtk.c (cb_tree_destroy_event): use g_free to free g_malloced
memory (Martin Pool <mbp@wistful.humbug.org.au>).
Mon Oct 5 15:26:30 1998 Raph Levien <raph@gimp.org>
* gdk/gdkrgb.c (gdk_rgb_convert_0888_br): Fixed a few long's that
......
Tue Oct 6 14:05:00 1998 Tim Janik <timj@gtk.org>
* gtk/testgtk.c (cb_tree_destroy_event): use g_free to free g_malloced
memory (Martin Pool <mbp@wistful.humbug.org.au>).
Mon Oct 5 15:26:30 1998 Raph Levien <raph@gimp.org>
* gdk/gdkrgb.c (gdk_rgb_convert_0888_br): Fixed a few long's that
......
Tue Oct 6 14:05:00 1998 Tim Janik <timj@gtk.org>
* gtk/testgtk.c (cb_tree_destroy_event): use g_free to free g_malloced
memory (Martin Pool <mbp@wistful.humbug.org.au>).
Mon Oct 5 15:26:30 1998 Raph Levien <raph@gimp.org>
* gdk/gdkrgb.c (gdk_rgb_convert_0888_br): Fixed a few long's that
......
......@@ -1013,8 +1013,8 @@ cb_tree_destroy_event(GtkWidget* w)
sTreeButtons* tree_buttons;
/* free buttons structure associate at this tree */
tree_buttons = gtk_object_get_user_data(GTK_OBJECT(w));
free(tree_buttons);
tree_buttons = gtk_object_get_user_data (GTK_OBJECT (w));
g_free (tree_buttons);
}
static void
......@@ -1184,7 +1184,7 @@ create_tree_sample(guint selection_mode,
sTreeButtons* tree_buttons;
/* create tree buttons struct */
if((tree_buttons = g_malloc(sizeof(sTreeButtons))) == NULL)
if ((tree_buttons = g_malloc (sizeof (sTreeButtons))) == NULL)
{
g_error("can't allocate memory for tree structure !\n");
return;
......
......@@ -1013,8 +1013,8 @@ cb_tree_destroy_event(GtkWidget* w)
sTreeButtons* tree_buttons;
/* free buttons structure associate at this tree */
tree_buttons = gtk_object_get_user_data(GTK_OBJECT(w));
free(tree_buttons);
tree_buttons = gtk_object_get_user_data (GTK_OBJECT (w));
g_free (tree_buttons);
}
static void
......@@ -1184,7 +1184,7 @@ create_tree_sample(guint selection_mode,
sTreeButtons* tree_buttons;
/* create tree buttons struct */
if((tree_buttons = g_malloc(sizeof(sTreeButtons))) == NULL)
if ((tree_buttons = g_malloc (sizeof (sTreeButtons))) == NULL)
{
g_error("can't allocate memory for tree structure !\n");
return;
......
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