mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-29 04:32:15 -05:00
fix crash after reloading script
This commit is contained in:
parent
44a2ed5a97
commit
541f221a61
@ -2156,7 +2156,7 @@ Command_PyReload(char *name)
|
|||||||
if (!plugin) {
|
if (!plugin) {
|
||||||
hexchat_print(ph, "Can't find a python plugin with that name");
|
hexchat_print(ph, "Can't find a python plugin with that name");
|
||||||
} else {
|
} else {
|
||||||
char *filename = strdup(plugin->filename);
|
char *filename = g_strdup(plugin->filename);
|
||||||
Command_PyUnload(filename);
|
Command_PyUnload(filename);
|
||||||
Command_PyLoad(filename);
|
Command_PyLoad(filename);
|
||||||
/* cppcheck-suppress deallocDealloc */
|
/* cppcheck-suppress deallocDealloc */
|
||||||
|
Loading…
Reference in New Issue
Block a user