summary refs log tree commit diff stats
path: root/plugins/python
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-04-13 02:01:04 -0300
committerTingPing <tngpng@gmail.com>2013-04-13 02:01:04 -0300
commit541f221a6121fe5d1ff1e103ca2fdedda33cf0af (patch)
tree5e7ef19134041739ea38697e47fae40aae2697f8 /plugins/python
parent44a2ed5a9794d92cdf3fc5e5dcc52c4b9c95f441 (diff)
fix crash after reloading script
Diffstat (limited to 'plugins/python')
-rw-r--r--plugins/python/python.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/python/python.c b/plugins/python/python.c
index 912341a8..1be2c7bb 100644
--- a/plugins/python/python.c
+++ b/plugins/python/python.c
@@ -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 */