[Pntool-developers] SF.net SVN: pntool:[221] pnheaders/matrix.c
Brought to you by:
compaqdrew,
miordache
From: <mio...@us...> - 2009-08-18 22:19:01
|
Revision: 221 http://pntool.svn.sourceforge.net/pntool/?rev=221&view=rev Author: miordache Date: 2009-08-18 22:18:47 +0000 (Tue, 18 Aug 2009) Log Message: ----------- matrix.c correction Modified Paths: -------------- pnheaders/matrix.c Modified: pnheaders/matrix.c =================================================================== --- pnheaders/matrix.c 2009-08-17 21:56:30 UTC (rev 220) +++ pnheaders/matrix.c 2009-08-18 22:18:47 UTC (rev 221) @@ -465,7 +465,8 @@ void inline _delmatr3(matrix* m) { int i; MatrElem* p, *pt; - for (i = 0, p = m->row[i]; i < (m->nr); i++) + for (i = 0; i < (m->nr); i++) { + p = m->row[i]; if(p) { p->next[mLEFT]->next[mRIGHT] = 0; while(p) { @@ -474,6 +475,7 @@ p = pt; } } + } free(m->row); free(m->column); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |