raylib-cpp-cmake-template icon indicating copy to clipboard operation
raylib-cpp-cmake-template copied to clipboard

Segfault when exiting the game

Open mdorier opened this issue 1 year ago • 1 comments

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

mdorier avatar Mar 13 '24 19:03 mdorier

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?

tupini07 avatar Mar 26 '24 18:03 tupini07