]> git.sesse.net Git - vlc/commitdiff
activex: forwardport [23112]
authorDamien Fouilleul <damienf@videolan.org>
Sat, 17 Nov 2007 23:32:42 +0000 (23:32 +0000)
committerDamien Fouilleul <damienf@videolan.org>
Sat, 17 Nov 2007 23:32:42 +0000 (23:32 +0000)
activex/plugin.cpp

index 7ab1decd613e2e9d671cc4d9a2851445bfde83d2..ca23d48cc840122446e175da43dca74ba970ebae 100644 (file)
@@ -238,6 +238,12 @@ VLCPlugin::VLCPlugin(VLCPluginClass *p_class, LPUNKNOWN pUnkOuter) :
 
 VLCPlugin::~VLCPlugin()
 {
+    /*
+    ** bump refcount to avoid recursive release from
+    ** following interfaces when releasing this interface
+    */
+    AddRef();
+
     delete vlcSupportErrorInfo;
     delete vlcOleObject;
     delete vlcDataObject;