tracker r1830 - in branches/indexer-split: . src/libtracker-common src/tracker-indexer



Author: carlosg
Date: Wed Jul  2 15:10:04 2008
New Revision: 1830
URL: http://svn.gnome.org/viewvc/tracker?rev=1830&view=rev

Log:
2008-07-02  Carlos Garnacho  <carlos imendio com>

        * src/libtracker-common/tracker-module-config.c
        (module_config_load_file):
        * src/libtracker-common/tracker-ontology.c
        (tracker_ontology_shutdown):
        * src/tracker-indexer/tracker-indexer.c (tracker_indexer_finalize):
        Plug some leaks.


Modified:
   branches/indexer-split/ChangeLog
   branches/indexer-split/src/libtracker-common/tracker-module-config.c
   branches/indexer-split/src/libtracker-common/tracker-ontology.c
   branches/indexer-split/src/tracker-indexer/tracker-indexer.c

Modified: branches/indexer-split/src/libtracker-common/tracker-module-config.c
==============================================================================
--- branches/indexer-split/src/libtracker-common/tracker-module-config.c	(original)
+++ branches/indexer-split/src/libtracker-common/tracker-module-config.c	Wed Jul  2 15:10:04 2008
@@ -400,6 +400,8 @@
 	module_config_set_ignored_directory_patterns (mc);
 	module_config_set_index_file_patterns (mc);
 
+	g_key_file_free (key_file);
+
 	return mc;
 }
 

Modified: branches/indexer-split/src/libtracker-common/tracker-ontology.c
==============================================================================
--- branches/indexer-split/src/libtracker-common/tracker-ontology.c	(original)
+++ branches/indexer-split/src/libtracker-common/tracker-ontology.c	Wed Jul  2 15:10:04 2008
@@ -146,19 +146,19 @@
 		return;
 	}
 
-	g_hash_table_remove_all (service_directory_table);
+	g_hash_table_destroy (service_directory_table);
 	service_directory_table = NULL;
 
-	g_hash_table_remove_all (service_id_table);
+	g_hash_table_destroy (service_id_table);
 	service_id_table = NULL;
 
-	g_hash_table_remove_all (service_table);
+	g_hash_table_destroy (service_table);
 	service_table = NULL;
 
-	g_hash_table_remove_all (mime_service);
+	g_hash_table_destroy (mime_service);
 	mime_service = NULL;
 
-	g_hash_table_remove_all (metadata_table);
+	g_hash_table_destroy (metadata_table);
 	metadata_table = NULL;
 
 	if (mime_prefix_service) {

Modified: branches/indexer-split/src/tracker-indexer/tracker-indexer.c
==============================================================================
--- branches/indexer-split/src/tracker-indexer/tracker-indexer.c	(original)
+++ branches/indexer-split/src/tracker-indexer/tracker-indexer.c	Wed Jul  2 15:10:04 2008
@@ -243,12 +243,13 @@
 	if (priv->flush_id) {
 		g_source_remove (priv->flush_id);
 		schedule_flush (TRACKER_INDEXER (object), TRUE);
-	}	
+	}
 
 	if (priv->timer) {
 		g_timer_destroy (priv->timer);
 	}
 
+	g_list_free (priv->module_names);
 	g_free (priv->db_dir);
 
 	g_queue_foreach (priv->dir_queue, (GFunc) path_info_free, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]