[xiph-commits] r3573 - browser_plugin/trunk/src

conrad at svn.annodex.net conrad at svn.annodex.net
Tue Apr 29 03:12:42 PDT 2008


Author: conrad
Date: 2008-04-29 03:12:41 -0700 (Tue, 29 Apr 2008)
New Revision: 3573

Modified:
   browser_plugin/trunk/src/plugin.cpp
Log:
fix bad pointer dereference in mouse callback. Patch by ogg.k.ogg.k


Modified: browser_plugin/trunk/src/plugin.cpp
===================================================================
--- browser_plugin/trunk/src/plugin.cpp	2008-04-29 01:45:58 UTC (rev 3572)
+++ browser_plugin/trunk/src/plugin.cpp	2008-04-29 10:12:41 UTC (rev 3573)
@@ -245,7 +245,8 @@
   mCmmlCallback(NULL),
   mAsyncCmmlCallback(NULL),
   mEndPlayCallback(NULL),
-  mPlaylistCallback(NULL)
+  mPlaylistCallback(NULL),
+  mMouseClickCallback(NULL),
 #if defined(XP_MACOSX)
   ,
   mOutputCleared(FALSE)
@@ -1037,7 +1038,9 @@
   
   if (mMouseButtonDown) {
     mMouseButtonDown = FALSE;
-    mMouseClickCallback->Call();
+    if (this->mMouseClickCallback != NULL) {
+      mMouseClickCallback->Call();
+    }
   }
 
   if (useSemaphore) {



More information about the commits mailing list