[tracker] libtracker-extract: Fix leak on .rule file error
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-extract: Fix leak on .rule file error
- Date: Fri, 14 Mar 2014 17:16:44 +0000 (UTC)
commit e4a3d8211a36d26a73f69e1aec5f9ff670f0eaa6
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Mar 14 18:06:27 2014 +0100
libtracker-extract: Fix leak on .rule file error
src/libtracker-extract/tracker-module-manager.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-extract/tracker-module-manager.c b/src/libtracker-extract/tracker-module-manager.c
index 9794d43..7cc1d21 100644
--- a/src/libtracker-extract/tracker-module-manager.c
+++ b/src/libtracker-extract/tracker-module-manager.c
@@ -163,11 +163,10 @@ tracker_extract_module_manager_init (void)
!load_extractor_rule (key_file, &error)) {
g_warning (" Could not load extractor rule file '%s': %s", name, error->message);
g_clear_error (&error);
- continue;
+ } else {
+ g_debug (" Loaded rule '%s'", name);
}
- g_debug (" Loaded rule '%s'", name);
-
g_key_file_free (key_file);
g_free (path);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]