Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Unified Diff: ui/views/win/hwnd_message_handler.h

Issue 1406403007: Eliminate HICON leaks caused by creating icons from bitmap image. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add move semantics to ScopedGDIObject. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/views/win/hwnd_message_handler.h
diff --git a/ui/views/win/hwnd_message_handler.h b/ui/views/win/hwnd_message_handler.h
index b24f5b9b21f46a3267f5e61919b89d1632c6f561..f0fb4d8c4a774d22af6e6158e43c27258a405129 100644
--- a/ui/views/win/hwnd_message_handler.h
+++ b/ui/views/win/hwnd_message_handler.h
@@ -517,6 +517,12 @@ class VIEWS_EXPORT HWNDMessageHandler :
// so that we can restore it.
HCURSOR previous_cursor_;
+ // The icon created from the bitmap image of the window icon.
+ base::win::ScopedHICON window_icon_;
+
+ // The icon created from the bitmap image of the app icon.
+ base::win::ScopedHICON app_icon_;
+
// Event handling ------------------------------------------------------------
// The flags currently being used with TrackMouseEvent to track mouse

Powered by Google App Engine
This is Rietveld 408576698