Browse Source

Fixed memory leak in 07-callback.

bkaradzic 13 years ago
parent
commit
62d646c522
1 changed files with 2 additions and 0 deletions
  1. 2 0
      examples/07-callback/callback.cpp

+ 2 - 0
examples/07-callback/callback.cpp

@@ -238,6 +238,8 @@ struct BgfxCallback : public bgfx::CallbackI
 		if (NULL != m_writer)
 		{
 			m_writer->close();
+			delete m_writer;
+			m_writer = NULL;
 		}
 	}