Replies: 4 comments
-
Is there any more information about what memory allocation is not freed? There's not enough information to go on. |
Beta Was this translation helpful? Give feedback.
-
The code is simply:
} ` I compile it on my linux (and it works fine) : gcc -Wall -Werror -Wextra main.c -o music -pthread -ldl -lm I run it with valgrind : valgrind ./music and this is the report: ==3105== HEAP SUMMARY: |
Beta Was this translation helpful? Give feedback.
-
Are there any details about which I know that at least on Windows, there's some memory that's allocated by the backend (WASAPI, DirectSound, etc.) which is always reported as un-freed by memory leak detectors. It could be something similar, but I'm not sure. |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for the responses, and really appreciated your library.. I a attaching what you asked for below... but I have to admit, its all going over my head now... I am using this for bonus points for a coding camp project, about making a raycasting game.... the graders check for leaks, I guess if I can give them a valid explanation then that would be suffice too... With out further adou, below is with the -DMA* raj@raj-home: |
Beta Was this translation helpful? Give feedback.
-
Hi, the most simple example whereby the song is played till 'Enter' is pressed, still has reachable memory (I guess for the rest of the song). How do I free this? ma_engine_uninit(&engine); was not enough
Beta Was this translation helpful? Give feedback.
All reactions