[Gridflow-cvs] [svn] commit: r6589 - /trunk/src/classes3.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Wed Feb 9 13:16:35 EST 2011


Author: matju
Date: Wed Feb  9 13:16:35 2011
New Revision: 6589

Log:
[#from]: fix crash upon deleting object

Modified:
    trunk/src/classes3.cxx

Modified: trunk/src/classes3.cxx
==============================================================================
--- trunk/src/classes3.cxx (original)
+++ trunk/src/classes3.cxx Wed Feb  9 13:16:35 2011
@@ -108,7 +108,7 @@
 		go.send(blah->dim.prod(),(float32 *)*blah);
 	}
 	static void clock_bang_ (BFObject *bself) {((GridFromTilde *)bself->self)->clock_bang();}
-	~GridFromTilde () {delete[] sigin; if (sam) delete[] sam;}
+	~GridFromTilde () {clock_free(clock); delete[] sigin; if (sam) delete[] sam;}
 	void perform (int n) {
 		float32 *data = (float32 *)*blah;
 		for (int i=0; i<n; i++) for (int j=0; j<chans; j++) data[i*chans+j]=sam[j][i];



More information about the Gridflow-cvs mailing list