diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Folders/src/folderItem.cpp | 1 | ||||
-rw-r--r-- | plugins/MyDetails/src/frame.cpp | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Folders/src/folderItem.cpp b/plugins/Folders/src/folderItem.cpp index 4125d43d4a..f89f001619 100644 --- a/plugins/Folders/src/folderItem.cpp +++ b/plugins/Folders/src/folderItem.cpp @@ -40,6 +40,7 @@ CFolderItem::~CFolderItem() mir_free(m_szName);
mir_free(m_tszFormat);
mir_free(m_tszOldFormat);
+ mir_free(m_tszUserName);
}
void CFolderItem::SetFormat(const TCHAR *newFormat)
diff --git a/plugins/MyDetails/src/frame.cpp b/plugins/MyDetails/src/frame.cpp index 61a4f9d0c6..795d3b1a48 100644 --- a/plugins/MyDetails/src/frame.cpp +++ b/plugins/MyDetails/src/frame.cpp @@ -1121,7 +1121,7 @@ void Draw(HWND hwnd, HDC hdc_orig) HDC hdc = CreateCompatibleDC(hdc_orig);
HBITMAP hBmp = CreateBitmap32(r.right,r.bottom);
- SelectObject(hdc, hBmp);
+ HBITMAP old_bitmap = (HBITMAP)SelectObject(hdc, hBmp);
int old_bk_mode = SetBkMode(hdc, TRANSPARENT);
HFONT old_font = (HFONT) SelectObject(hdc, hFont[0]);
@@ -1369,6 +1369,8 @@ void Draw(HWND hwnd, HDC hdc_orig) BitBlt(hdc_orig, r_full.left, r_full.top, r_full.right - r_full.left,
r_full.bottom - r_full.top, hdc, r_full.left, r_full.top, SRCCOPY);
+
+ SelectObject(hdc, old_bitmap);
DeleteDC(hdc);
DeleteObject(hBmp);
}
|