def destroy(self):
        """ Method used to allow class instance to be garbage-collected. """
        self.check_data_buffer()
        self._parser.StartElementHandler       = None
        self._parser.EndElementHandler         = None
        self._parser.CharacterDataHandler      = None
        self._parser.StartNamespaceDeclHandler = None
 Method used to allow class instance to be garbage-collected. 
chrome-cordova/gcmServer/xmpp/simplexml.py