changeset 28:5139bf30f208

Some further mods to vampy construction
author fazekasgy
date Tue, 25 Aug 2009 08:49:22 +0000
parents 046ba4183373
children e80caada79a8 4f1894c7591b
files PyPlugin.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/PyPlugin.cpp	Tue Aug 25 08:46:15 2009 +0000
+++ b/PyPlugin.cpp	Tue Aug 25 08:49:22 2009 +0000
@@ -97,6 +97,7 @@
 	
 	if (!m_pyInstance || PyErr_Occurred()) { 
 		if (PyErr_Occurred()) { PyErr_Print(); PyErr_Clear(); }
+		Py_DECREF(m_pyClass);
 		Py_CLEAR(args);
 		Py_CLEAR(pyInputSampleRate);
 		cerr << "PyPlugin::PyPlugin: Failed to create Python plugin instance for key \"" << pluginKey << "\" (is the 1-arg class constructor from sample rate correctly provided?)" << endl;