Skip to content

Commit c0becdf

Browse files
committed
Fixed memory leak in recent code
1 parent f6d33c7 commit c0becdf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

miniwindow.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ void CMiniWindow::Create (long Left, long Top, long Width, long Height,
152152
{
153153
dc.SelectObject(m_oldBitmap); // swap old one back
154154
m_Bitmap->DeleteObject ();
155+
delete m_Bitmap;
155156
}
156157

157158
m_Bitmap = new CBitmap;

0 commit comments

Comments
 (0)