From 070933f6789de719d789a864c85f46550af1808f Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Mon, 16 Aug 2010 23:03:34 +0530 Subject: [PATCH] libgupnp-dlna: Don't free the profiles list Freeing the list at finalize() time causes Discoverer to break after the first instance is created. For now, we keep the list alive forever (which was the original behaviour). Eventually, we'll change this so that the lists only last for the lifetime of the objects. --- libgupnp-dlna/gupnp-dlna-discoverer.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libgupnp-dlna/gupnp-dlna-discoverer.c b/libgupnp-dlna/gupnp-dlna-discoverer.c index d0bffe0..299dc16 100644 --- a/libgupnp-dlna/gupnp-dlna-discoverer.c +++ b/libgupnp-dlna/gupnp-dlna-discoverer.c @@ -130,13 +130,6 @@ gupnp_dlna_discoverer_dispose (GObject *object) static void gupnp_dlna_discoverer_finalize (GObject *object) { - GUPnPDLNADiscovererClass *klass = - GUPNP_DLNA_DISCOVERER_GET_CLASS (object); - - g_list_foreach (klass->profiles_list, (GFunc) g_object_unref, NULL); - g_list_free (klass->profiles_list); - klass->profiles_list = NULL; - G_OBJECT_CLASS (gupnp_dlna_discoverer_parent_class)->finalize (object); } -- 2.1.4