mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Fix memleak in cmd_urlopen()
This commit is contained in:
parent
de91a99178
commit
ac5ce105ac
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user