[Plugins] delete ws_info regardless of window mode.
authorhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Apr 2012 07:47:28 +0000 (07:47 +0000)
committerhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Apr 2012 07:47:28 +0000 (07:47 +0000)
commit125293f972def4b7793fe2a08321bc1d4780eff5
treed827385452b6c18931543c1a84e47816e55089ea
parent143f93b8cfe118e7df3ae4dacd5291c87e8b6d6c
[Plugins] delete ws_info regardless of window mode.
https://bugs.webkit.org/show_bug.cgi?id=83004

Patch by Bang Kwang min <justine.bang@samsung.com> on 2012-04-17
Reviewed by Simon Hausmann.

m_npWindow.ws_info should be deleted even if plugin run as windowless mode to remove memory leak.
Every plugin works well after this patch without any crash.
Additionally, change casting syntax to C++ style.

* plugins/PluginView.cpp:
(WebCore::PluginView::stop):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114358 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/plugins/PluginView.cpp