Commit a5f1a7e4 authored by Andrea Azzarone's avatar Andrea Azzarone 🚴

tracker-extract: Fix memory leak

Closes: #59
parent 26533ee6
......@@ -128,6 +128,7 @@ process_desktop_file (TrackerResource *resource,
if (g_key_file_get_boolean (key_file, GROUP_DESKTOP_ENTRY, "Hidden", NULL)) {
g_debug ("Desktop file is hidden");
g_key_file_free (key_file);
g_free (type);
return FALSE;
}
......@@ -163,6 +164,7 @@ process_desktop_file (TrackerResource *resource,
} else {
/* Invalid type, all valid types are already listed above */
g_warning ("Unknown desktop entry type '%s'", type);
g_free (type);
g_key_file_free (key_file);
g_strfreev (cats);
g_free (lang);
......@@ -253,6 +255,7 @@ process_desktop_file (TrackerResource *resource,
g_free (name);
g_free (lang);
g_free (type);
return TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment