diff options
| author | Christopher Davis <loafier@gmail.com> | 2006-07-14 10:02:13 +0000 |
|---|---|---|
| committer | Christopher Davis <loafier@gmail.com> | 2006-07-14 10:02:13 +0000 |
| commit | 5eaed0dbf78fca2bcf185da0abf1dbf41722deb2 (patch) | |
| tree | 2ff9c8bc5c8d206f2b7a852609d1eac6bd377d27 /pyloader.c | |
| parent | 34cdeaae9369af5dce3ce3a4a7756c033bc44cc5 (diff) | |
| download | irssi-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.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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; |
