mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-10-25 05:55:38 +00:00
fix crash after reloading script
This commit is contained in:
1 parent
44a2ed5a97
commit
541f221a61
1 file changed
+1
-1
@@ -2156,7 +2156,7 @@ Command_PyReload(char *name)
|
||||
if (!plugin) {
|
||||
hexchat_print(ph, "Can't find a python plugin with that name");
|
||||
} else {
|
||||
char *filename = strdup(plugin->filename);
|
||||
char *filename = g_strdup(plugin->filename);
|
||||
Command_PyUnload(filename);
|
||||
Command_PyLoad(filename);
|
||||
/* cppcheck-suppress deallocDealloc */
|
||||
|
||||
Reference in new issue
Block a user