diff --git a/ChangeLog b/ChangeLog index e1c2bacaf8..b9d297d9c0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-05-31 Sven Neumann + + * plug-ins/helpbrowser/queue.c: allocate structs using GSlice. + 2007-05-31 Mukund Sivaraman * plug-ins/Lighting/lighting_ui.c diff --git a/plug-ins/helpbrowser/queue.c b/plug-ins/helpbrowser/queue.c index 1247e0c592..47de72b63b 100644 --- a/plug-ins/helpbrowser/queue.c +++ b/plug-ins/helpbrowser/queue.c @@ -46,7 +46,7 @@ typedef struct static Item * item_new (const gchar *uri) { - Item *item = g_new0 (Item, 1); + Item *item = g_slice_new0 (Item); item->uri = g_strdup (uri); @@ -59,14 +59,14 @@ item_free (Item *item) g_free (item->uri); g_free (item->title); - g_free (item); + g_slice_free (Item, item); } Queue * queue_new (void) { - return g_new0 (Queue, 1); + return g_slice_new0 (Queue); } void @@ -81,7 +81,7 @@ queue_free (Queue *h) g_list_free (h->queue); } - g_free (h); + g_slice_free (Queue, h); } void