1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 07:54:58 +00:00
serenity/Userland/Libraries/LibChess
Andrew Kaster c145d5410c Userland: Don't leak objects when constructor arguments throw
Similar to d253beb2f7.

Found with Ali's clang-query script in Shell:

```
for $(find AK Userland -type f -name '*.h' -o -name '*.cpp') {
    in_parallel -j 12 -- clang-query -p \
    Build/lagom/compile_commands.json $it -c \
    'm cxxNewExpr(has(cxxConstructExpr(hasAnyArgument(hasDescendant( \
        allOf(isExpandedFromMacro("TRY"), stmtExpr()))))))' \
    } | grep -v 'matches.' | tee results
```
2023-12-13 19:21:03 -07:00
..
Chess.cpp Userland: Prefer _string over _short_string 2023-08-08 07:37:21 +02:00
Chess.h AK: Rename GenericTraits to DefaultTraits 2023-11-09 10:05:51 -05:00
CMakeLists.txt Everywhere: Mark dependencies of most targets as PRIVATE 2022-11-01 14:49:09 +00:00
UCICommand.cpp Userland: Don't leak objects when constructor arguments throw 2023-12-13 19:21:03 -07:00
UCICommand.h LibChess: Add optional ponder move to the BestMove command 2023-05-03 08:31:34 +01:00
UCIEndpoint.cpp Userland: Rename Core::Object to Core::EventReceiver 2023-08-06 20:39:51 +02:00
UCIEndpoint.h Userland: Rename Core::Object to Core::EventReceiver 2023-08-06 20:39:51 +02:00