Author: rolf
Date: 2007-10-31 14:48:03 -0500 (Wed, 31 Oct 2007)
New Revision: 88606
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/dependencyobject.cpp
Log:
* dependencyobject.cpp: Guard against calling NULL.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-10-31 19:30:43 UTC (rev 88605)
+++ trunk/moon/src/ChangeLog 2007-10-31 19:48:03 UTC (rev 88606)
@@ -1,5 +1,9 @@
2007-10-31 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+ * dependencyobject.cpp: Guard against calling NULL.
+
+2007-10-31 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+
* media.cpp: Redo ASFParser::Malloc to avoid warnings, and make sure the
return value is always checked.
Modified: trunk/moon/src/dependencyobject.cpp
===================================================================
--- trunk/moon/src/dependencyobject.cpp 2007-10-31 19:30:43 UTC (rev 88605)
+++ trunk/moon/src/dependencyobject.cpp 2007-10-31 19:48:03 UTC (rev 88606)
@@ -175,7 +175,8 @@
for (GSList *l = copy; l; l = l->next) {
EventClosure *closure = (EventClosure*)l->data;
- closure->func (this, calldata, closure->data);
+ if (closure && closure->func)
+ closure->func (this, calldata, closure->data);
}
g_slist_free (copy);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches