mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 19:46:22 +00:00
Fix memleak again
Memleak was reinroduced ind92c576aa5It was already fixed inac5ce105acBut the rebase peetahs rebase ontop of master took the wrong changes. I decided to pull anyways and fix since reviewing/giving feedback without GH probably takes longer.
This commit is contained in:
@@ -8921,10 +8921,14 @@ cmd_urlopen(ProfWin *window, const char *const command, gchar **args)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
gchar *argv[] = {prefs_get_string(PREF_URL_OPEN_CMD), args[0], NULL};
|
||||
gchar* cmd = prefs_get_string(PREF_URL_OPEN_CMD);
|
||||
gchar *argv[] = {cmd, args[0], NULL};
|
||||
|
||||
if (!call_external(argv, NULL, NULL)) {
|
||||
cons_show_error("Unable to open url: check the logs for more information.");
|
||||
}
|
||||
|
||||
g_free(cmd);
|
||||
} else {
|
||||
cons_show("urlopen not supported in this window");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user