[tracker/binary-log-2] Set the iface to zero after unreferencing
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/binary-log-2] Set the iface to zero after unreferencing
- Date: Fri, 8 Jan 2010 16:06:30 +0000 (UTC)
commit 1f0aa6b7d6bec4513e3beb2004650fd364391cad
Author: Philip Van Hoof <philip codeminded be>
Date: Fri Jan 8 17:04:53 2010 +0100
Set the iface to zero after unreferencing
It's okay to squash this one with previous commit for example
src/libtracker-db/tracker-db-manager.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-manager.c b/src/libtracker-db/tracker-db-manager.c
index 1cbb48b..41933c3 100644
--- a/src/libtracker-db/tracker-db-manager.c
+++ b/src/libtracker-db/tracker-db-manager.c
@@ -1326,8 +1326,10 @@ tracker_db_manager_init (TrackerDBManagerFlags flags,
}
for (i = 1; i < G_N_ELEMENTS (dbs); i++) {
- if (dbs[i].iface)
+ if (dbs[i].iface) {
g_object_unref (dbs[i].iface);
+ dbs[i].iface = NULL;
+ }
}
db_recreate_all ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]