free base before buffer

This commit is contained in:
Henry Hiles 2026-09-24 22:00:01 -04:00
commit 0a40d645d2
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -80,8 +80,8 @@ class ClientController extends AsyncNotifier<int> {
return GomuksInit(bufferPointer.ref); return GomuksInit(bufferPointer.ref);
} finally { } finally {
calloc calloc
..free(bufferPointer) ..free(bufferPointer.ref.base)
..free(bufferPointer.ref.base); ..free(bufferPointer);
} }
}); });
@ -113,8 +113,8 @@ class ClientController extends AsyncNotifier<int> {
return json; return json;
} finally { } finally {
calloc calloc
..free(bufferPointer.ref.base) ..free(bufferPointer)
..free(bufferPointer); ..free(bufferPointer.ref.base);
} }
} }