mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-03-15 11:30:11 +01:00
Fix off-screen browser leak in cefclient osrplugin example.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@328 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
026dacda76
commit
7a07aaf5f1
@ -594,6 +594,9 @@ LRESULT CALLBACK PluginWndProc(HWND hWnd, UINT message, WPARAM wParam,
|
||||
case WM_DESTROY:
|
||||
// Stop the timer that's used for redrawing.
|
||||
KillTimer(hWnd, 1);
|
||||
|
||||
// Explicitly close the offscreen browser and release the reference.
|
||||
g_offscreenBrowser->CloseBrowser();
|
||||
g_offscreenBrowser = NULL;
|
||||
return 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user