add free() method for stability on Windows
This commit is contained in:
1 parent
e42d5e6263
commit
0748323316
4 files changed
+189
-452
No files matched your search
@@ -1015,7 +1015,7 @@ class FilamentControllerFFI extends FilamentController {
|
||||
|
||||
var position = modelMatrix.getColumn(3).xyz;
|
||||
|
||||
calloc.free(arrayPtr);
|
||||
flutter_filament_free(arrayPtr.cast<Void>());
|
||||
return position;
|
||||
}
|
||||
|
||||
@@ -1029,7 +1029,7 @@ class FilamentControllerFFI extends FilamentController {
|
||||
var modelMatrix = Matrix4.fromFloat64List(doubleList);
|
||||
var rotationMatrix = Matrix3.identity();
|
||||
modelMatrix.copyRotation(rotationMatrix);
|
||||
calloc.free(arrayPtr);
|
||||
flutter_filament_free(arrayPtr.cast<Void>());
|
||||
return rotationMatrix;
|
||||
}
|
||||
|
||||
|
||||
+179
-450
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user