diff options
author | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-12 17:27:10 +0000 |
---|---|---|
committer | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-12 17:27:10 +0000 |
commit | f44957e7699d1b884c8b977804328257d94235b6 (patch) | |
tree | f24058deac83edf090440091ed3f909d6a7e5b56 /src/views/win | |
parent | 5dc06785ff7185e60d7ddde4fd022af198ecae10 (diff) |
Fix GDI device context leak.
https://codereview.appspot.com/7682044/
git-svn-id: http://skia.googlecode.com/svn/trunk@8113 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/views/win')
-rw-r--r-- | src/views/win/SkOSWindow_win.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/views/win/SkOSWindow_win.cpp b/src/views/win/SkOSWindow_win.cpp index 1d247b24eb..0fdeba6156 100644 --- a/src/views/win/SkOSWindow_win.cpp +++ b/src/views/win/SkOSWindow_win.cpp @@ -371,7 +371,9 @@ void SkOSWindow::detachGL() { void SkOSWindow::presentGL() { glFlush(); - SwapBuffers(GetDC((HWND)fHWND)); + HDC dc = GetDC((HWND)fHWND); + SwapBuffers(dc); + ReleaseDC((HWND)fHWND, dc); } #if SK_ANGLE |