summaryrefslogtreecommitdiffstats
path: root/module/plugins/Plugin.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-16 12:08:28 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-16 12:08:28 +0200
commit890d9efcfe3b15e3da518de9b2cfe3f2e25744ff (patch)
treeb1b180e139a084dea796c0ab8e88e4291f3a9fa3 /module/plugins/Plugin.py
parentfileserve lookinto (diff)
downloadpyload-890d9efcfe3b15e3da518de9b2cfe3f2e25744ff.tar.xz
closed #131
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r--module/plugins/Plugin.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py
index 00cb2401f..0df3519fc 100644
--- a/module/plugins/Plugin.py
+++ b/module/plugins/Plugin.py
@@ -114,6 +114,12 @@ class Plugin(object):
def __call__(self):
return self.__name__
+ def __del__(self):
+ if hasattr(self, "pyfile"):
+ del self.pyfile
+ if hasattr(self, "req"):
+ del self.req
+
def setup(self):
""" more init stuff if needed """
pass