Test: Avoid leaking widget tree in WindowDescTestsFixture
This commit is contained in:
		| @@ -98,4 +98,5 @@ TEST_CASE_METHOD(WindowDescTestsFixture, "WindowDesc - NWidgetPart validity") | |||||||
|  |  | ||||||
| 	REQUIRE_NOTHROW(root = MakeWindowNWidgetTree(window_desc->nwid_begin, window_desc->nwid_end, &biggest_index, &shade_select)); | 	REQUIRE_NOTHROW(root = MakeWindowNWidgetTree(window_desc->nwid_begin, window_desc->nwid_end, &biggest_index, &shade_select)); | ||||||
| 	CHECK((root != nullptr)); | 	CHECK((root != nullptr)); | ||||||
|  | 	delete root; | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jonathan G Rennison
					Jonathan G Rennison