tracker r2025 - in branches/indexer-split: . src/libtracker-db
- From: mr svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2025 - in branches/indexer-split: . src/libtracker-db
- Date: Thu, 7 Aug 2008 11:09:27 +0000 (UTC)
Author: mr
Date: Thu Aug 7 11:09:27 2008
New Revision: 2025
URL: http://svn.gnome.org/viewvc/tracker?rev=2025&view=rev
Log:
* src/libtracker-db/tracker-db-index.c: Don't free the
priv->filename before closing the index, causes weird debug
messages which depend on that pointer.
Modified:
branches/indexer-split/ChangeLog
branches/indexer-split/src/libtracker-db/tracker-db-index.c
Modified: branches/indexer-split/src/libtracker-db/tracker-db-index.c
==============================================================================
--- branches/indexer-split/src/libtracker-db/tracker-db-index.c (original)
+++ branches/indexer-split/src/libtracker-db/tracker-db-index.c Thu Aug 7 11:09:27 2008
@@ -159,19 +159,18 @@
static void
tracker_db_index_finalize (GObject *object)
{
+ TrackerDBIndex *index;
TrackerDBIndexPrivate *priv;
- priv = TRACKER_DB_INDEX_GET_PRIVATE (object);
-
- g_free (priv->filename);
+ index = TRACKER_DB_INDEX (object);
+ priv = TRACKER_DB_INDEX_GET_PRIVATE (index);
- if (g_hash_table_size (priv->cache) > 0) {
- tracker_db_index_flush (TRACKER_DB_INDEX (object));
- }
+ tracker_db_index_flush (index);
+ tracker_db_index_close (index);
g_hash_table_destroy (priv->cache);
- tracker_db_index_close (TRACKER_DB_INDEX (object));
+ g_free (priv->filename);
g_mutex_free (priv->mutex);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]