[gupnp] [PATCH] chain up in GUPnPServiceInfo dispose and finalize methods
- From: Sven Neumann <s neumann phase-zero de>
- To: gupnp o-hand com
- Subject: [gupnp] [PATCH] chain up in GUPnPServiceInfo dispose and finalize methods
- Date: Thu, 26 Mar 2009 10:48:12 +0100
Hi,
On Wed, 2009-03-25 at 20:42 +0100, Sven Neumann wrote:
> as far as I can see GUPnPDeviceInfo forgets to chain up in the dispose
> and finalize methods. Attached is a patch that fixes this.
GUPnPServiceInfo suffers from the same problem. Attached is a patch to
fix that. As I have been asked to use Bugzilla for patches, I have
opened http://bugzilla.openedhand.com/show_bug.cgi?id=1523 for this.
Sven
>From b19e680c4f34022ef1240ad9fa22821bfc9a8d55 Mon Sep 17 00:00:00 2001
From: Sven Neumann <s neumann phase-zero de>
Date: Thu, 26 Mar 2009 10:38:15 +0100
Subject: [PATCH] chain up in GUPnPServiceInfo dispose and finalize methods
---
libgupnp/gupnp-service-info.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/libgupnp/gupnp-service-info.c b/libgupnp/gupnp-service-info.c
index 549520b..5ee9ddf 100644
--- a/libgupnp/gupnp-service-info.c
+++ b/libgupnp/gupnp-service-info.c
@@ -213,6 +213,8 @@ gupnp_service_info_dispose (GObject *object)
g_object_unref (info->priv->doc);
info->priv->doc = NULL;
}
+
+ G_OBJECT_CLASS (gupnp_service_info_parent_class)->dispose (object);
}
static void
@@ -227,6 +229,8 @@ gupnp_service_info_finalize (GObject *object)
g_free (info->priv->service_type);
soup_uri_free (info->priv->url_base);
+
+ G_OBJECT_CLASS (gupnp_service_info_parent_class)->finalize (object);
}
static void
--
1.5.6.3
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]