tracker r1341 - branches/indexer-split/src/trackerd
- From: pvanhoof svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r1341 - branches/indexer-split/src/trackerd
- Date: Fri, 2 May 2008 18:50:35 +0100 (BST)
Author: pvanhoof
Date: Fri May 2 17:50:34 2008
New Revision: 1341
URL: http://svn.gnome.org/viewvc/tracker?rev=1341&view=rev
Log:
Fixed potential small memory leak
Modified:
branches/indexer-split/src/trackerd/tracker-xesam.c
Modified: branches/indexer-split/src/trackerd/tracker-xesam.c
==============================================================================
--- branches/indexer-split/src/trackerd/tracker-xesam.c (original)
+++ branches/indexer-split/src/trackerd/tracker-xesam.c Fri May 2 17:50:34 2008
@@ -165,18 +165,21 @@
tracker_xesam_live_search_match_with_events (search, result_set, &added, &removed, &modified);
- if (added && added->len > 0) {
+ if (added && added->len > 0)
tracker_xesam_live_search_emit_hits_added (search, added->len);
+ if (added)
g_array_free (added, TRUE);
- }
- if (removed && removed->len > 0) {
+
+ if (removed && removed->len > 0)
tracker_xesam_live_search_emit_hits_removed (search, removed);
+ if (removed)
g_array_free (removed, TRUE);
- }
- if (modified && modified->len > 0) {
+
+ if (modified && modified->len > 0)
tracker_xesam_live_search_emit_hits_modified (search, modified);
+ if (modified)
g_array_free (modified, TRUE);
- }
+
searches = g_list_next (searches);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]