mirror of https://github.com/OpenTTD/OpenTTD
Fix: Memory leak in WindowDescTestsFixture
parent
e0c670cbe8
commit
2b914c7a2f
|
@ -95,4 +95,5 @@ TEST_CASE_METHOD(WindowDescTestsFixture, "WindowDesc - NWidgetPart validity")
|
|||
|
||||
REQUIRE_NOTHROW(root = MakeWindowNWidgetTree(window_desc->nwid_begin, window_desc->nwid_end, &biggest_index, &shade_select));
|
||||
CHECK((root != nullptr));
|
||||
delete root;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue