Index: source/lib/res/graphics/tests/test_tex.h =================================================================== --- source/lib/res/graphics/tests/test_tex.h +++ source/lib/res/graphics/tests/test_tex.h @@ -46,7 +46,9 @@ // encode to file format TS_ASSERT_OK(t.encode(extension, &da)); - memset(&t, 0, sizeof(t)); + + // Wipe the texture data to ensure decode doesn't work by chance + t.~Tex(); // decode from file format shared_ptr ptr = DummySharedPtr(da.base);