[tracker/rss-enclosures] tracker-store: class-signal: Fix rdf_types array after delete



commit 7b0ee01ec8826c29bce3b5da8393b934df2c50b3
Author: Philip Van Hoof <philip codeminded be>
Date:   Fri Sep 3 16:00:35 2010 +0200

    tracker-store: class-signal: Fix rdf_types array after delete

 src/libtracker-data/tracker-data-update.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 19415c0..f8c83ca 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -1582,6 +1582,7 @@ cache_delete_resource_type (TrackerClass *class,
 	for (i = 0; i < resource_buffer->types->len; i++) {
 		if (g_ptr_array_index (resource_buffer->types, i) == class) {
 			found = TRUE;
+			break;
 		}
 	}
 
@@ -1700,6 +1701,7 @@ cache_delete_resource_type (TrackerClass *class,
 		}
 	}
 
+	g_ptr_array_remove (resource_buffer->types, class);
 }
 
 static void



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