Commit 25990754 authored by piman@chromium.org's avatar piman@chromium.org

Fix fullscreen pepper leak

BUG=None
TEST=Pepper Flash on Youtube. Go fullscreen and back. Obeserve with xrestop that X resources aren't leaked


Review URL: http://codereview.chromium.org/7670018

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97115 0039d316-1c4b-4281-b951-d872f2087c98
parent 416e1955
...@@ -261,6 +261,7 @@ void RenderWidgetFullscreenPepper::Destroy() { ...@@ -261,6 +261,7 @@ void RenderWidgetFullscreenPepper::Destroy() {
// plugin_ to NULL to avoid calling into a dangling pointer e.g. on Close(). // plugin_ to NULL to avoid calling into a dangling pointer e.g. on Close().
plugin_ = NULL; plugin_ = NULL;
Send(new ViewHostMsg_Close(routing_id_)); Send(new ViewHostMsg_Close(routing_id_));
Release();
} }
void RenderWidgetFullscreenPepper::DidChangeCursor( void RenderWidgetFullscreenPepper::DidChangeCursor(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment