Commit 2e23d025 authored by Moritz Lipp's avatar Moritz Lipp
Browse files

Fix memory leak

parent 7a15100d
......@@ -3903,6 +3903,7 @@ cc_open(char* input)
gtk_entry_set_text(Zathura.UI.inputbar, file);
gtk_editable_set_position(GTK_EDITABLE(Zathura.UI.inputbar), -1);
g_free(file);
completion_free(completion);
return NULL;
}
......@@ -3960,6 +3961,7 @@ cc_open(char* input)
{
g_free(path);
g_free(file);
completion_free(completion);
return NULL;
}
......
Supports Markdown
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