summaryrefslogtreecommitdiffstats
path: root/pyloader.c
diff options
context:
space:
mode:
authorChristopher Davis <loafier@gmail.com>2006-07-14 10:02:13 +0000
committerChristopher Davis <loafier@gmail.com>2006-07-14 10:02:13 +0000
commit5eaed0dbf78fca2bcf185da0abf1dbf41722deb2 (patch)
tree2ff9c8bc5c8d206f2b7a852609d1eac6bd377d27 /pyloader.c
parent34cdeaae9369af5dce3ce3a4a7756c033bc44cc5 (diff)
downloadirssi-python-5eaed0dbf78fca2bcf185da0abf1dbf41722deb2.tar.gz
irssi-python-5eaed0dbf78fca2bcf185da0abf1dbf41722deb2.tar.xz
irssi-python-5eaed0dbf78fca2bcf185da0abf1dbf41722deb2.zip
finished up themes. time for textui stuff
git-svn-id: http://svn.irssi.org/repos/irssi-python@4297 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'pyloader.c')
-rw-r--r--pyloader.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/pyloader.c b/pyloader.c
index 03b5150..a087827 100644
--- a/pyloader.c
+++ b/pyloader.c
@@ -148,7 +148,14 @@ error:
else
printtext(NULL, NULL, MSGLEVEL_CLIENTERROR, "error loading script %s", argv[0]);
- Py_XDECREF(script);
+ if (script)
+ {
+ /* make sure to clean up any formats, signals, commands that may have been
+ attached before the exception took place */
+ pyscript_cleanup(script);
+ Py_DECREF(script);
+ }
+
g_free(path);
return 0;