Crash fix

This commit is contained in:
Joshua Granick
2016-04-02 00:36:50 -07:00
parent 28f828262c
commit 9c2b9d2889

View File

@@ -1201,7 +1201,15 @@ namespace lime {
if (path) {
value _path = alloc_string (path);
free ((char*) path);
if (type != 4) {
// TODO: Make this more consistent
free ((char*) path);
}
return _path;
} else {