mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-02-04 08:59:07 +00:00
chore(test): fix a few minor memory leaks in test suite
This commit is contained in:
parent
768a535eea
commit
29d99a2cbc
2 changed files with 9 additions and 1 deletions
|
|
@ -51,7 +51,9 @@ TEST_CASE("SThread::Create", "[thread]") {
|
|||
SECTION("creates new thread") {
|
||||
SThread thread;
|
||||
auto threadName = const_cast<char*>("TestThread");
|
||||
auto threadParam = SMemAlloc(16, nullptr, 0, 0x0);
|
||||
auto threadParam = STORM_ALLOC(16);
|
||||
REQUIRE(SThread::Create(threadProc, threadParam, thread, threadName, 0) != 0);
|
||||
|
||||
STORM_FREE(threadParam);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue