[cig-commits] r11192 - cs/benchmark/cigma/trunk/src
luis at geodynamics.org
luis at geodynamics.org
Wed Feb 20 01:27:55 PST 2008
Author: luis
Date: 2008-02-20 01:27:54 -0800 (Wed, 20 Feb 2008)
New Revision: 11192
Modified:
cs/benchmark/cigma/trunk/src/VtkWriter.cpp
Log:
Fixed bug in VtkWriter that resulted in two calls to fclose()
* Need to zero out file pointer in VtkWriter::close() so we
can call it safely from VtkWriter's destructor
Modified: cs/benchmark/cigma/trunk/src/VtkWriter.cpp
===================================================================
--- cs/benchmark/cigma/trunk/src/VtkWriter.cpp 2008-02-20 09:27:51 UTC (rev 11191)
+++ cs/benchmark/cigma/trunk/src/VtkWriter.cpp 2008-02-20 09:27:54 UTC (rev 11192)
@@ -28,6 +28,7 @@
if (fp != NULL)
{
fclose(fp);
+ fp = NULL;
}
}
More information about the cig-commits
mailing list