[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gfx/libcoords Coords.cxx
From: |
Tuomas J. Lukka |
Subject: |
[Gzz-commits] gzz/gfx/libcoords Coords.cxx |
Date: |
Thu, 30 Jan 2003 13:30:15 -0500 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Tuomas J. Lukka <address@hidden> 03/01/30 13:30:14
Modified files:
gfx/libcoords : Coords.cxx
Log message:
Fix bug tickled by memleak fix
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/libcoords/Coords.cxx.diff?tr1=1.63&tr2=1.64&r1=text&r2=text
Patches:
Index: gzz/gfx/libcoords/Coords.cxx
diff -u gzz/gfx/libcoords/Coords.cxx:1.63 gzz/gfx/libcoords/Coords.cxx:1.64
--- gzz/gfx/libcoords/Coords.cxx:1.63 Thu Jan 30 12:25:25 2003
+++ gzz/gfx/libcoords/Coords.cxx Thu Jan 30 13:30:14 2003
@@ -1159,7 +1159,8 @@
virtual void setParams(float *params) { }
virtual CoordSys *createInverse() {
DBG(dbg_cull) << "called CullingCoordsys::createInverse\n";
- return super->getInverse();
+ ownInverse = false;
+ return super->getInverse();
}
virtual void vertex(const ZPt &p) const {
//DBG(dbg_cull) << "called CullingCoordsys::vertex\n";
@@ -1312,8 +1313,8 @@
CoordSet::CoordSet() : cs1_tmp(0), cs2_tmp(0) {
}
CoordSet::~CoordSet() {
- clean();
DBG(dbg) << "Deleting coordset "<<this<<" "<<cs1_tmp<<"
"<<cs2_tmp<<"\n";
+ clean();
if(cs1_tmp) { delete cs1_tmp; cs1_tmp = 0; }
if(cs2_tmp) { delete cs2_tmp; cs2_tmp = 0; }
}