tupini07 / raylib-cpp-cmake-template

A small Raylib C++ template that uses CMake, LDtk, and Box2d
59 stars 4 forks source link

Segfault when exiting the game #3

Open mdorier opened 7 months ago

mdorier commented 7 months ago

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
tupini07 commented 7 months ago

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?