Skip to content
This repository was archived by the owner on Oct 31, 2022. It is now read-only.

Commit 0962a22

Browse files
committed
Fix to use _aligned_free() on Windows. Fixes #24
1 parent 6cd7b29 commit 0962a22

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/HapCompressor.c

+4
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,11 @@ Hap_CClose(
272272
HapCodecDXTEncoderDestroy(glob->dxtEncoder);
273273
glob->dxtEncoder = NULL;
274274

275+
#if defined(__APPLE__)
275276
free(glob->formatConvertBuffer);
277+
#else
278+
_aligned_free(glob->formatConvertBuffer);
279+
#endif
276280
glob->formatConvertBuffer = NULL;
277281

278282
HapCodecTasksWaitForGroupToComplete(glob->taskGroup);

0 commit comments

Comments
 (0)