Browse Source

On OSX popen do not work well without explicit closing the file for popen, need to investigate it

mingodad 7 years ago
parent
commit
ceb8414c1a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      SquiLu/sqstdlib/sqstdio.cpp

+ 1 - 1
SquiLu/sqstdlib/sqstdio.cpp

@@ -98,7 +98,7 @@ static SQRESULT _popen__typeof(HSQUIRRELVM v)
 static SQRESULT _popen_releasehook(SQUserPointer p, SQInteger /*size*/, void */*ep*/)
 static SQRESULT _popen_releasehook(SQUserPointer p, SQInteger /*size*/, void */*ep*/)
 {
 {
 	SQPopen *self = (SQPopen*)p;
 	SQPopen *self = (SQPopen*)p;
-	self->~SQPopen();
+	self->~SQPopen(); //on osx it doesn't seem to work
 	sq_free(self,sizeof(SQFile));
 	sq_free(self,sizeof(SQFile));
 	return 1;
 	return 1;
 }
 }