[vlc-commits] NPAPI: Win32, fixed crash on plugin unload.

Sergey Radionov git at videolan.org
Sat Jul 30 10:06:05 CEST 2011


vlc/vlc-1.1 | branch: master | Sergey Radionov <RSATom at gmail.com> | Fri Jul 29 19:36:04 2011 +0700| [c456a74975543c2d207d76f77c5531431d98250f] | committer: Rémi Denis-Courmont

NPAPI: Win32, fixed crash on plugin unload.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=c456a74975543c2d207d76f77c5531431d98250f
---

 projects/mozilla/vlcplugin.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/projects/mozilla/vlcplugin.cpp b/projects/mozilla/vlcplugin.cpp
index fb6e00f..8620217 100644
--- a/projects/mozilla/vlcplugin.cpp
+++ b/projects/mozilla/vlcplugin.cpp
@@ -522,6 +522,10 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
 
 VlcPlugin::~VlcPlugin()
 {
+#ifdef XP_WIN
+    _WindowsManager.DestroyWindows();
+#endif
+
     free(psz_baseURL);
     free(psz_target);
     free(psz_text);



More information about the vlc-commits mailing list