mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 11:56:22 +00:00
Fix memleak in cmd_urlopen()
This commit is contained in:
@@ -8921,7 +8921,9 @@ cmd_urlopen(ProfWin *window, const char *const command, gchar **args)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
call_external(prefs_get_string(PREF_URL_OPEN_CMD), args[0]);
|
||||
gchar* cmd = prefs_get_string(PREF_URL_OPEN_CMD);
|
||||
call_external(cmd, args[0]);
|
||||
g_free(cmd);
|
||||
} else {
|
||||
cons_show("urlopen not supported in this window");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user