[tracker] tracker-extract: Plug error leak
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract: Plug error leak
- Date: Sat, 15 Aug 2015 10:00:29 +0000 (UTC)
commit 731ae253ba5404c97f81b0f61e12e7672afc1022
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Aug 6 01:09:48 2015 +0200
tracker-extract: Plug error leak
src/tracker-extract/tracker-extract-decorator.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-decorator.c b/src/tracker-extract/tracker-extract-decorator.c
index 9152e4e..a3c8a31 100644
--- a/src/tracker-extract/tracker-extract-decorator.c
+++ b/src/tracker-extract/tracker-extract-decorator.c
@@ -224,8 +224,9 @@ get_metadata_cb (TrackerExtract *extract,
g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (result), &error);
if (!error || error->domain == TRACKER_EXTRACT_ERROR) {
- g_message ("Extraction failed: %s\n", error->message);
+ g_message ("Extraction failed: %s\n", error ? error->message : "no error given");
g_task_return_boolean (task, FALSE);
+ g_clear_error (&error);
} else {
g_task_return_error (task, error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]