[rhythmbox] rhythmdb: dispose of the internal GCancellable properly (bug #588257)
- From: Jonathan Matthew <jmatthew src gnome org>
- To: svn-commits-list gnome org
- Subject: [rhythmbox] rhythmdb: dispose of the internal GCancellable properly (bug #588257)
- Date: Sat, 11 Jul 2009 04:22:16 +0000 (UTC)
commit 975179c06bdb4c1395045de8f82ae93a463d22a4
Author: Jonathan Matthew <jonathan d14n org>
Date: Sat Jul 11 13:58:44 2009 +1000
rhythmdb: dispose of the internal GCancellable properly (bug #588257)
rhythmdb/rhythmdb.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/rhythmdb/rhythmdb.c b/rhythmdb/rhythmdb.c
index debda4f..faa2ea5 100644
--- a/rhythmdb/rhythmdb.c
+++ b/rhythmdb/rhythmdb.c
@@ -1036,7 +1036,6 @@ rhythmdb_shutdown (RhythmDB *db)
rhythmdb_action_free (db, action);
}
- g_object_unref (db->priv->exiting);
}
static void
@@ -1080,6 +1079,11 @@ rhythmdb_dispose (GObject *object)
db->priv->metadata = NULL;
}
+ if (db->priv->exiting != NULL) {
+ g_object_unref (db->priv->exiting);
+ db->priv->exiting = NULL;
+ }
+
G_OBJECT_CLASS (rhythmdb_parent_class)->dispose (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]