raylib-cpp-cmake-template
raylib-cpp-cmake-template copied to clipboard
Segfault when exiting the game
I haven't looked at the code yet, only tested on my Mac, and it Segfaults when I press escape to close the game. Here is what's printed on the console:
raylib-cpp-cmake-template(6419,0x1dc7d5ec0) malloc: *** error for object 0x6000030053e0: pointer being freed was not allocated
raylib-cpp-cmake-template(6419,0x1dc7d5ec0) malloc: *** set a breakpoint in malloc_error_break to debug
[1] 6419 abort build/raylib-cpp-cmake-template
hi! thanks for this :) I just noticed I'm also getting this message (though only on Linux, not on Windows)
I just pushed a commit, b33389db33 , which removes this "double-free" problem. Could you check if it solves the issue for you?