[tracker] Bug 604152 - tracker-miner-fs crashes after initial startup



commit b77b57aa7249321331190e8645ff4b8eaf3c9470
Author: Carlos Garnacho <carlos lanedo com>
Date:   Wed Dec 9 12:09:37 2009 +0100

    Bug 604152 - tracker-miner-fs crashes after initial startup
    
    Allocate event data in TrackerMonitor through GSlice, so alloc/free functions
    match.

 src/libtracker-miner/tracker-monitor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-monitor.c b/src/libtracker-miner/tracker-monitor.c
index 614737b..2318ff5 100644
--- a/src/libtracker-miner/tracker-monitor.c
+++ b/src/libtracker-miner/tracker-monitor.c
@@ -422,7 +422,7 @@ event_data_new (GFile   *file,
 	EventData *event;
 	GTimeVal now;
 
-	event = g_new0 (EventData, 1);
+	event = g_slice_new0 (EventData);
 	g_get_current_time (&now);
 
 	event->file = g_object_ref (file);



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