# HG changeset patch # User Tej Chajed # Date 1354477883 21600 # Node ID cfb8a5f6ea06fb2926e20a8a7b4b3ebcca0ddac7 # Parent b1c5efe11560ae74ebc3df764f6225609e9b0688 removing unneeded %newobject decl newobject is only for management of a returned object -- it cannot handle nested structures that need complicated teardown diff -r b1c5efe11560 -r cfb8a5f6ea06 swig/xtract.i --- a/swig/xtract.i Sun Dec 02 13:50:46 2012 -0600 +++ b/swig/xtract.i Sun Dec 02 13:51:23 2012 -0600 @@ -11,11 +11,6 @@ #include "xtract/libxtract.h" %} -/* Ensure filterbank gets freed */ -/** FIX: This doesn't work, or I'm not using properly. For now just add an explicit call to destroy_filterbank() in the target code */ -%newobject create_filterbank; -%delobject destroy_filterbank; - /* %typemap(javabase) SWIGTYPE, SWIGTYPE *, SWIGTYPE &, SWIGTYPE [], SWIGTYPE (CLASS::*) "SWIG"