From da26e563f75a60f343954290e16211d0052d2b95 Mon Sep 17 00:00:00 2001 From: Lars Doucet Date: Tue, 5 Apr 2016 14:27:17 -0500 Subject: [PATCH] Update ExternalInterface.cpp Comment out free() in System.getDocumentDirectory with note about crash --- project/src/ExternalInterface.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/project/src/ExternalInterface.cpp b/project/src/ExternalInterface.cpp index 42151bcac..b256cf382 100644 --- a/project/src/ExternalInterface.cpp +++ b/project/src/ExternalInterface.cpp @@ -1206,7 +1206,11 @@ namespace lime { // TODO: Make this more consistent - free ((char*) path); + //This free() causes crashes on mac at least. Commenting it out makes it work + //again but may cause a small memory leak. Some more consideration is + //necessary to figure out what to do here + + //free ((char*) path); }