Chromium Code Reviews| Index: webkit/glue/plugins/webplugin_delegate_impl.cc |
| =================================================================== |
| --- webkit/glue/plugins/webplugin_delegate_impl.cc (revision 13823) |
| +++ webkit/glue/plugins/webplugin_delegate_impl.cc (working copy) |
| @@ -220,7 +220,11 @@ |
| } |
| void WebPluginDelegateImpl::PluginDestroyed() { |
| - delete this; |
| + if (handle_event_depth_) { |
|
ananta
2009/04/16 16:37:24
Would we run into the same issue with windowed plu
jam
2009/04/16 17:56:13
no since only windowless plugins would use HandleE
|
| + MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
| + } else { |
| + delete this; |
| + } |
| } |
| bool WebPluginDelegateImpl::Initialize(const GURL& url, |