Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8696)

Unified Diff: chrome/renderer/plugin_channel_host.cc

Issue 155174: linux: fix renderer/plugin crash when loading multiple pages with plugins (Closed)
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/plugin/plugin_channel.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/plugin_channel_host.cc
diff --git a/chrome/renderer/plugin_channel_host.cc b/chrome/renderer/plugin_channel_host.cc
index e010c56c0d1e9ccbebc4d2905548d1bd12abfa63..0befaab49f526c62465d78b357a61556a5ecfde3 100644
--- a/chrome/renderer/plugin_channel_host.cc
+++ b/chrome/renderer/plugin_channel_host.cc
@@ -6,6 +6,10 @@
#include "chrome/common/plugin_messages.h"
+#if defined(OS_POSIX)
+#include "chrome/common/ipc_channel_posix.h"
+#endif
+
// A simple MessageFilter that will ignore all messages and respond to sync
// messages with an error when is_listening_ is false.
class IsListeningFilter : public IPC::ChannelProxy::MessageFilter {
@@ -76,6 +80,9 @@ PluginChannelHost::PluginChannelHost() {
}
PluginChannelHost::~PluginChannelHost() {
+#if defined(OS_POSIX)
+ IPC::RemoveAndCloseChannelSocket(channel_name());
+#endif
}
bool PluginChannelHost::Init(MessageLoop* ipc_message_loop,
« no previous file with comments | « chrome/plugin/plugin_channel.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698