comparison native/PyPluginObject.cpp @ 115:899095c8760f

Commented-out debug
author Chris Cannam
date Wed, 17 Jun 2015 13:03:37 +0100
parents 9343eee50605
children 2370b942cd32
comparison
equal deleted inserted replaced
114:7f03d095a8b1 115:899095c8760f
164 } 164 }
165 165
166 static void 166 static void
167 PyPluginObject_dealloc(PyPluginObject *self) 167 PyPluginObject_dealloc(PyPluginObject *self)
168 { 168 {
169 // cerr << "PyPluginObject_dealloc: plugin object " << self << ", plugin " << self->plugin << endl;
170
169 delete self->plugin; 171 delete self->plugin;
170 PyObject_Del(self); 172 PyObject_Del(self);
171 } 173 }
172 174
173 static PyObject * 175 static PyObject *
702 unload(PyObject *self, PyObject *) 704 unload(PyObject *self, PyObject *)
703 { 705 {
704 PyPluginObject *pd = getPluginObject(self); 706 PyPluginObject *pd = getPluginObject(self);
705 if (!pd) return 0; 707 if (!pd) return 0;
706 708
709 // cerr << "unload: unloading plugin object " << pd << ", plugin " << pd->plugin << endl;
710
707 delete pd->plugin; 711 delete pd->plugin;
708 pd->plugin = 0; // This is checked by getPluginObject, so we avoid 712 pd->plugin = 0; // This is checked by getPluginObject, so we avoid
709 // blowing up if called repeatedly 713 // blowing up if called repeatedly
710 714
711 return Py_True; 715 return Py_True;