Author: toshok
Date: 2007-07-19 18:15:50 -0400 (Thu, 19 Jul 2007)
New Revision: 82329
Modified:
trunk/moon/plugin/ChangeLog
trunk/moon/plugin/plugin-class.cpp
Log:
* plugin-class.cpp (moonlight_control_get_property): Retain the
settings/content objects before returning them. fixes crash in
silverlight chess.
2007-07-19 Chris Toshok <[EMAIL PROTECTED]>
Modified: trunk/moon/plugin/ChangeLog
===================================================================
--- trunk/moon/plugin/ChangeLog 2007-07-19 21:53:49 UTC (rev 82328)
+++ trunk/moon/plugin/ChangeLog 2007-07-19 22:15:50 UTC (rev 82329)
@@ -1,5 +1,11 @@
2007-07-19 Chris Toshok <[EMAIL PROTECTED]>
+ * plugin-class.cpp (moonlight_control_get_property): Retain the
+ settings/content objects before returning them. fixes crash in
+ silverlight chess.
+
+2007-07-19 Chris Toshok <[EMAIL PROTECTED]>
+
* plugin.h, plugin.cpp: add getBrowserInformation call, useful for
populating the managed BrowserInformation object. need to flesh
out how to get the other info. userAgent is easy.
Modified: trunk/moon/plugin/plugin-class.cpp
===================================================================
--- trunk/moon/plugin/plugin-class.cpp 2007-07-19 21:53:49 UTC (rev 82328)
+++ trunk/moon/plugin/plugin-class.cpp 2007-07-19 22:15:50 UTC (rev 82329)
@@ -615,11 +615,13 @@
MoonlightControlObject *rootobj = (MoonlightControlObject*)npobj;
if (name_matches (name, "settings")) {
+ NPN_RetainObject (rootobj->settings);
OBJECT_TO_NPVARIANT (rootobj->settings, *result);
return true;
}
if (name_matches (name, "content")) {
+ NPN_RetainObject (rootobj->content);
OBJECT_TO_NPVARIANT (rootobj->content, *result);
return true;
}
@@ -879,7 +881,7 @@
name);
NPUTF8 *strname = NPN_UTF8FromIdentifier (name);
- DEBUGMSG ("******** OBJECT %s AT %p\n", strname, p);
+ DEBUGMSG ("******** OBJECT %s AT %p", strname, p);
return p != NULL;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches