Author: rolf
Date: 2007-12-26 12:37:09 -0500 (Wed, 26 Dec 2007)
New Revision: 91900
Modified:
trunk/moon/plugin/ChangeLog
trunk/moon/plugin/plugin.cpp
trunk/moon/src/ChangeLog
trunk/moon/src/dirty.cpp
trunk/moon/src/downloader.cpp
Log:
* src/downloader.cpp: Null-initialize a field.
* src/dirty.cpp: Make DirtyNode keep a reference to the element it
wraps.
* plugin/plugin.cpp: PluginInstance::SetSource: don't check if we're
setting the same source. Fixes #349592.
Modified: trunk/moon/plugin/ChangeLog
===================================================================
--- trunk/moon/plugin/ChangeLog 2007-12-26 15:52:58 UTC (rev 91899)
+++ trunk/moon/plugin/ChangeLog 2007-12-26 17:37:09 UTC (rev 91900)
@@ -1,5 +1,10 @@
2007-12-26 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+ * plugin.cpp: PluginInstance::SetSource: don't check if we're setting
the
+ same source. Fixes #349592.
+
+2007-12-26 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+
* plugin-class.cpp: Don't crash if surface->GetTopLevel returns null.
Fixes
#349816.
Modified: trunk/moon/plugin/plugin.cpp
===================================================================
--- trunk/moon/plugin/plugin.cpp 2007-12-26 15:52:58 UTC (rev 91899)
+++ trunk/moon/plugin/plugin.cpp 2007-12-26 17:37:09 UTC (rev 91900)
@@ -987,7 +987,7 @@
void
PluginInstance::setSource (const char *value)
{
- if (!value || (this->source && !strcasecmp (this->source, value)))
+ if (!value)
return;
this->source = (char *) NPN_MemAlloc (strlen (value) + 1);
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-12-26 15:52:58 UTC (rev 91899)
+++ trunk/moon/src/ChangeLog 2007-12-26 17:37:09 UTC (rev 91900)
@@ -1,3 +1,8 @@
+2007-12-26 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+
+ * downloader.cpp: Null-initialize a field.
+ * dirty.cpp: Make DirtyNode keep a reference to the element it wraps.
+
2007-12-21 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
* pipeline.h: Added, the start of the new media pipeline.
Modified: trunk/moon/src/dirty.cpp
===================================================================
--- trunk/moon/src/dirty.cpp 2007-12-26 15:52:58 UTC (rev 91899)
+++ trunk/moon/src/dirty.cpp 2007-12-26 17:37:09 UTC (rev 91900)
@@ -20,7 +20,19 @@
class DirtyNode : public List::Node {
public:
- DirtyNode (UIElement *element) { this->element = element; }
+ DirtyNode (UIElement *element)
+ {
+ this->element = element;
+ if (this->element)
+ this->element->ref ();
+ }
+ virtual ~DirtyNode ()
+ {
+ if (this->element) {
+ this->element->unref ();
+ this->element = NULL;
+ }
+ }
UIElement *element;
};
Modified: trunk/moon/src/downloader.cpp
===================================================================
--- trunk/moon/src/downloader.cpp 2007-12-26 15:52:58 UTC (rev 91899)
+++ trunk/moon/src/downloader.cpp 2007-12-26 17:37:09 UTC (rev 91900)
@@ -74,6 +74,7 @@
total = 0;
part_hash = NULL;
context = NULL;
+ consumer_closure = NULL;
}
static void
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches