[libdmapsharing] More work to properly free DMAPConnection objects Signed-off-by: W. Michael Petullo <mike flyn org>
- From: W. Michael Petullo <wmpetullo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdmapsharing] More work to properly free DMAPConnection objects Signed-off-by: W. Michael Petullo <mike flyn org>
- Date: Fri, 4 Feb 2011 03:51:42 +0000 (UTC)
commit 404dd5e13fd45a1741f671d700205c786ae80e0e
Author: W. Michael Petullo <mike flyn org>
Date: Thu Feb 3 21:23:28 2011 -0600
More work to properly free DMAPConnection objects
Signed-off-by: W. Michael Petullo <mike flyn org>
libdmapsharing/dmap-connection.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/libdmapsharing/dmap-connection.c b/libdmapsharing/dmap-connection.c
index 3a92974..a2f4c8f 100644
--- a/libdmapsharing/dmap-connection.c
+++ b/libdmapsharing/dmap-connection.c
@@ -138,12 +138,6 @@ dmap_connection_finalize (GObject *object)
g_return_if_fail (connection->priv != NULL);
- g_free (connection->priv->name);
- g_free (connection->priv->host);
-
- g_object_unref (connection->priv->db);
- g_object_unref (connection->priv->record_factory);
-
g_debug ("Finalize");
G_OBJECT_CLASS (dmap_connection_parent_class)->finalize (object);
@@ -1678,6 +1672,11 @@ dmap_connection_dispose (GObject *object)
priv->db = NULL;
}
+ if (priv->record_factory) {
+ g_object_unref (G_OBJECT (priv->record_factory));
+ priv->record_factory = NULL;
+ }
+
if (priv->last_error_message != NULL) {
g_free (priv->last_error_message);
priv->last_error_message = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]