Skip to content

Commit 64b5a5a

Browse files
committed
Fix invalid call to FFI::free
1 parent 75ade6a commit 64b5a5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public static function new(string $type, bool $owned = true, bool $persistent =
323323
*/
324324
public static function free(CData $variable): void
325325
{
326-
self::$engine->free($variable);
326+
FFI::free($variable);
327327
}
328328

329329
/**

0 commit comments

Comments
 (0)