tracker r2177 - in branches/indexer-split: . src/tracker-indexer



Author: carlosg
Date: Thu Aug 28 09:35:33 2008
New Revision: 2177
URL: http://svn.gnome.org/viewvc/tracker?rev=2177&view=rev

Log:
2008-08-28  Carlos Garnacho  <carlos imendio com>

        * src/tracker-indexer/tracker-indexer.c (create_update_item): Avoid
        potential double frees.


Modified:
   branches/indexer-split/ChangeLog
   branches/indexer-split/src/tracker-indexer/tracker-indexer.c

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	Thu Aug 28 09:35:33 2008
@@ -1283,13 +1283,12 @@
 			/* Remove old text and set new one in the db */
 			if (old_text) {
 				tracker_db_delete_text (service_def, id);
-				g_free (old_text);
 			}
 
 			if (new_text) {
 				tracker_db_set_text (service_def, id, new_text);
-				g_free (new_text);
 			}
+
 			g_hash_table_unref (old_words);
 			g_hash_table_unref (new_words);
 		}



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