RobLoach / raylib-cpp

C++ Object Oriented Wrapper for raylib
https://robloach.github.io/raylib-cpp/
zlib License
673 stars 87 forks source link

Remove new in throw #298

Closed furudbat closed 8 months ago

furudbat commented 8 months ago

Potential memory leak. Always throw as value and catch as const-ref. - https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#e15-throw-by-value-catch-exceptions-from-a-hierarchy-by-reference

RobLoach commented 8 months ago

🙏