summaryrefslogtreecommitdiffstats
path: root/module/PyFile.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-25 11:38:11 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-25 11:38:11 +0100
commite70ba609af6793e26857d88e496860114ccac103 (patch)
treeae2ab2892e88b640b8ff6d7ed02417431f6efdcc /module/PyFile.py
parentcatch socket exceptions (diff)
downloadpyload-e70ba609af6793e26857d88e496860114ccac103.tar.xz
cleanup stuff
Diffstat (limited to 'module/PyFile.py')
-rw-r--r--module/PyFile.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/module/PyFile.py b/module/PyFile.py
index e7c7c2c2b..c198ce459 100644
--- a/module/PyFile.py
+++ b/module/PyFile.py
@@ -119,8 +119,12 @@ class PyFile():
def release(self):
"""sync and remove from cache"""
self.sync()
+
if hasattr(self, "plugin"):
del self.plugin
+ if hasattr(self, "download"):
+ del self.download
+
self.m.releaseLink(self.id)
def delete(self):