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;
|
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 {
|
} else {
|
||||||
cons_show("urlopen not supported in this window");
|
cons_show("urlopen not supported in this window");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user