diff --git a/lib/controllers/client.dart b/lib/controllers/client.dart index 7926afe..263b514 100644 --- a/lib/controllers/client.dart +++ b/lib/controllers/client.dart @@ -79,9 +79,7 @@ class ClientController extends AsyncNotifier { try { return GomuksInit(bufferPointer.ref); } finally { - calloc - ..free(bufferPointer) - ..free(bufferPointer.ref.base); + calloc.free(bufferPointer); } });