Commit 2a411eb0 authored by Christian Hergert's avatar Christian Hergert

code-index: free info before breaking out of loop

This fixes a minor leak of FileInfo (last one per directory).
parent 5747bbc7
...@@ -527,10 +527,10 @@ filter_ignored (IdeVcs *vcs, ...@@ -527,10 +527,10 @@ filter_ignored (IdeVcs *vcs,
{ {
GList *tmp = iter->next; GList *tmp = iter->next;
g_queue_delete_link (file_infos, iter); g_queue_delete_link (file_infos, iter);
file_info_free (info);
if (tmp == NULL) if (tmp == NULL)
break; break;
iter = tmp; iter = tmp;
file_info_free (info);
goto again; goto again;
} }
} }
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