diff options
author | Nathan Fritz <nathan@andyet.net> | 2010-05-12 13:45:36 -0700 |
---|---|---|
committer | Nathan Fritz <nathan@andyet.net> | 2010-05-12 13:45:36 -0700 |
commit | 223507f36f6dd4c0d4a0733a524fd529231b010b (patch) | |
tree | d8e5de1732e9651299a27c9300e464221066ec65 /sleekxmpp/stanza/nick.py | |
parent | 8515cef11734613267b1b31f543bca620beac864 (diff) | |
download | slixmpp-223507f36f6dd4c0d4a0733a524fd529231b010b.tar.gz slixmpp-223507f36f6dd4c0d4a0733a524fd529231b010b.tar.bz2 slixmpp-223507f36f6dd4c0d4a0733a524fd529231b010b.tar.xz slixmpp-223507f36f6dd4c0d4a0733a524fd529231b010b.zip |
fixed a rather large memory leak
Diffstat (limited to 'sleekxmpp/stanza/nick.py')
-rw-r--r-- | sleekxmpp/stanza/nick.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/stanza/nick.py b/sleekxmpp/stanza/nick.py index 92a523d6..ac7e3604 100644 --- a/sleekxmpp/stanza/nick.py +++ b/sleekxmpp/stanza/nick.py @@ -22,4 +22,5 @@ class Nick(ElementBase): return self.xml.text def delNick(self): - return self.__del__() + if self.parent is not None: + self.parent().xml.remove(self.xml) |