RobLoach / raylib-cpp

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

Remove new in throw #298

Closed furudbat closed 7 months ago

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

🙏