mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 14:35:59 +01:00
Fix memory leak
This commit is contained in:
parent
f302627263
commit
644330de76
1 changed files with 2 additions and 0 deletions
|
@ -3903,6 +3903,7 @@ cc_open(char* input)
|
||||||
gtk_entry_set_text(Zathura.UI.inputbar, file);
|
gtk_entry_set_text(Zathura.UI.inputbar, file);
|
||||||
gtk_editable_set_position(GTK_EDITABLE(Zathura.UI.inputbar), -1);
|
gtk_editable_set_position(GTK_EDITABLE(Zathura.UI.inputbar), -1);
|
||||||
g_free(file);
|
g_free(file);
|
||||||
|
completion_free(completion);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3960,6 +3961,7 @@ cc_open(char* input)
|
||||||
{
|
{
|
||||||
g_free(path);
|
g_free(path);
|
||||||
g_free(file);
|
g_free(file);
|
||||||
|
completion_free(completion);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue