[Gridflow-cvs] [svn] commit: r3685 - in /trunk: format/main.c gridflow.h

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Mon Apr 28 13:05:06 EDT 2008


Author: matju
Date: Mon Apr 28 13:05:05 2008
New Revision: 3685

Log:
add default destructor for formats

Modified:
    trunk/format/main.c
    trunk/gridflow.h

Modified: trunk/format/main.c
==============================================================================
--- trunk/format/main.c (original)
+++ trunk/format/main.c Mon Apr 28 13:05:05 2008
@@ -144,6 +144,8 @@
 	frame = 0;
 }
 
+Format::~Format () {if (f) fclose(f); /*if (fd>=0) close(fd);*/}
+
 // This is different from IO#eof, which waits until a read has failed
 // doesn't work in nonblocking mode? (I don't recall why)
 //\def 0 eof () {

Modified: trunk/gridflow.h
==============================================================================
--- trunk/gridflow.h (original)
+++ trunk/gridflow.h Mon Apr 28 13:05:05 2008
@@ -897,6 +897,7 @@
 	\decl 0 cast (NumberTypeE nt);
 	\decl 0 seek(int frame);
 	\decl 0 rewind ();
+	~Format ();
 };
 
 extern std::vector<string> gf_data_path;



More information about the Gridflow-cvs mailing list