From 541f221a6121fe5d1ff1e103ca2fdedda33cf0af Mon Sep 17 00:00:00 2001
From: TingPing <tngpng@gmail.com>
Date: Sat, 13 Apr 2013 02:01:04 -0300
Subject: fix crash after reloading script

---
 plugins/python/python.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'plugins/python')

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 */
-- 
cgit 1.4.1