[visual unit tests] kill unit test memory leaks

This commit is contained in:
nick black 2021-11-01 22:18:05 -04:00
parent 9101ac9139
commit 252bfec9c4
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -49,6 +49,7 @@ TEST_CASE("Visual") {
CHECK(ncpixel_a(p) == alpha);
}
}
ncvisual_destroy(ncv);
}
// ncvisual_geom() with a NULL nc
@ -202,6 +203,7 @@ TEST_CASE("Visual") {
CHECK(ncpixel_a(p) == alpha);
}
}
ncvisual_destroy(ncv);
}
// check that we properly populate RGBx + A -> RGBA
@ -220,6 +222,7 @@ TEST_CASE("Visual") {
CHECK(ncpixel_a(p) == alpha);
}
}
ncvisual_destroy(ncv);
}
// resize followed by rotate, see #1800
@ -502,6 +505,7 @@ TEST_CASE("Visual") {
}
}
delete[] rgba;
ncvisual_destroy(ncv);
}
}
@ -542,6 +546,7 @@ TEST_CASE("Visual") {
}
}
delete[] rgba;
ncvisual_destroy(ncv);
}
}
@ -616,6 +621,7 @@ TEST_CASE("Visual") {
}
}
delete[] rgba;
ncvisual_destroy(ncv);
}
}