# HG changeset patch # User Chris Cannam # Date 1434542617 -3600 # Node ID 899095c8760fd41516ce59760be84b1a6b4e659a # Parent 7f03d095a8b1eea1d439f75f33f2c00fe8a246c9 Commented-out debug diff -r 7f03d095a8b1 -r 899095c8760f native/PyPluginObject.cpp --- a/native/PyPluginObject.cpp Wed Jun 17 12:43:18 2015 +0100 +++ b/native/PyPluginObject.cpp Wed Jun 17 13:03:37 2015 +0100 @@ -166,6 +166,8 @@ static void PyPluginObject_dealloc(PyPluginObject *self) { +// cerr << "PyPluginObject_dealloc: plugin object " << self << ", plugin " << self->plugin << endl; + delete self->plugin; PyObject_Del(self); } @@ -704,6 +706,8 @@ PyPluginObject *pd = getPluginObject(self); if (!pd) return 0; +// cerr << "unload: unloading plugin object " << pd << ", plugin " << pd->plugin << endl; + delete pd->plugin; pd->plugin = 0; // This is checked by getPluginObject, so we avoid // blowing up if called repeatedly