aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/views/win
diff options
context:
space:
mode:
authorGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-12 17:27:10 +0000
committerGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-12 17:27:10 +0000
commitf44957e7699d1b884c8b977804328257d94235b6 (patch)
treef24058deac83edf090440091ed3f909d6a7e5b56 /src/views/win
parent5dc06785ff7185e60d7ddde4fd022af198ecae10 (diff)
Fix GDI device context leak.
Diffstat (limited to 'src/views/win')
-rw-r--r--src/views/win/SkOSWindow_win.cpp4
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