[tracker/tracker-0.10] tracker-miner-fs: Close sparql insert/graph braces on extractor cancellation.



commit f118c1bf2685143322e8dea160e1a03e7cc36e80
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue May 24 18:12:43 2011 +0200

    tracker-miner-fs: Close sparql insert/graph braces on extractor cancellation.
    
    Fixes NB#258459.

 src/miners/fs/tracker-miner-files.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index 3c28616..b063b5c 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -2042,6 +2042,10 @@ extractor_get_embedded_metadata_cancel (GCancellable    *cancellable,
 
 	error = g_error_new_literal (miner_files_error_quark, 0,
 	                             "Embedded metadata extraction was cancelled");
+
+	tracker_sparql_builder_graph_close (data->sparql);
+	tracker_sparql_builder_insert_close (data->sparql);
+
 	tracker_miner_fs_file_notify (TRACKER_MINER_FS (data->miner), data->file, error);
 
 	process_file_data_free (data);



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