[Fix] (MG_Test/Program): Free context at teardown

This commit is contained in:
2025-08-14 17:32:35 +08:00
parent c9fd4ecb8f
commit 1c1d3e00a2
+4
View File
@@ -11,6 +11,10 @@ protected:
void SetUp() override {
MG_State::pGLContext = new MG_State::GLState::GLContext();
}
void TearDown() override {
delete MG_State::pGLContext;
}
};
TEST_F(ProgramTest, Sanity) {