[tracker/extraction-improvements: 8/8] tracker-miner-fs: Fix invalid memory access
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/extraction-improvements: 8/8] tracker-miner-fs: Fix invalid memory access
- Date: Tue, 10 May 2011 16:04:42 +0000 (UTC)
commit 01f60f7832995a31ecff6930521b89c38786df92
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue May 10 18:00:48 2011 +0200
tracker-miner-fs: Fix invalid memory access
data->miner shouldn't be used after data has been freed.
src/miners/fs/tracker-miner-files.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index 0c46935..2d7e696 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -2084,12 +2084,14 @@ extractor_get_embedded_metadata_cb (GObject *object,
gpointer user_data)
{
TrackerMinerFilesPrivate *priv;
+ TrackerMinerFiles *miner;
ProcessFileData *data = user_data;
const gchar *preupdate, *sparql, *where;
TrackerExtractInfo *info;
GError *error = NULL;
- priv = data->miner->private;
+ miner = data->miner;
+ priv = miner->private;
priv->extraction_queue = g_list_remove (priv->extraction_queue, data);
info = tracker_extract_client_get_metadata_finish (G_FILE (object), res, &error);
@@ -2138,7 +2140,7 @@ extractor_get_embedded_metadata_cb (GObject *object,
*/
if (!priv->extraction_queue &&
priv->failed_extraction_queue) {
- extractor_process_failsafe (data->miner);
+ extractor_process_failsafe (miner);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]