Author: rolf
Date: 2007-09-17 12:11:27 -0400 (Mon, 17 Sep 2007)
New Revision: 85894

Modified:
   trunk/moon/plugin/ChangeLog
   trunk/moon/plugin/downloader.cpp
   trunk/moon/plugin/plugin.cpp
   trunk/moon/src/ChangeLog
   trunk/moon/src/xaml.cpp
Log:
* plugin/downloader.cpp: Removed warning.
* plugin/plugin.cpp: Delete the current xaml_loader if we create a new
  one.
* src/xaml.cpp: Fix warning.

Modified: trunk/moon/plugin/ChangeLog
===================================================================
--- trunk/moon/plugin/ChangeLog 2007-09-17 15:45:26 UTC (rev 85893)
+++ trunk/moon/plugin/ChangeLog 2007-09-17 16:11:27 UTC (rev 85894)
@@ -1,5 +1,10 @@
 2007-09-17  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
 
+       * downloader.cpp: Removed warning.
+       * plugin.cpp: Delete the current xaml_loader if we create a new one.
+
+2007-09-17  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
+
        
 
 2007-09-17  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 

Modified: trunk/moon/plugin/downloader.cpp
===================================================================
--- trunk/moon/plugin/downloader.cpp    2007-09-17 15:45:26 UTC (rev 85893)
+++ trunk/moon/plugin/downloader.cpp    2007-09-17 16:11:27 UTC (rev 85894)
@@ -113,4 +113,4 @@
 void 
 downloader_destroy ()
 {
-}
\ No newline at end of file
+}

Modified: trunk/moon/plugin/plugin.cpp
===================================================================
--- trunk/moon/plugin/plugin.cpp        2007-09-17 15:45:26 UTC (rev 85893)
+++ trunk/moon/plugin/plugin.cpp        2007-09-17 16:11:27 UTC (rev 85894)
@@ -164,6 +164,7 @@
                g_free (background);
 
        delete xaml_loader;
+       xaml_loader = NULL;
 }
 
 void 
@@ -329,6 +330,8 @@
 
        if (NPN_Evaluate(this->instance, object, &reference, &result)) {
                if (NPVARIANT_IS_STRING (result)) {
+                       if (xaml_loader)
+                               delete xaml_loader;
                        xaml_loader = PluginXamlLoader::FromStr 
(NPVARIANT_TO_STRING (result).utf8characters, this, this->surface);
                        TryLoad ();
                }
@@ -422,7 +425,7 @@
        int error = 0;
 
        vm_missing_file = xaml_loader->TryLoad (&error);
-
+       
        if (vm_missing_file != NULL){
                StreamNotify *notify = new StreamNotify (StreamNotify::REQUEST, 
vm_missing_file);
                NPN_GetURLNotify (instance, vm_missing_file, NULL, notify);
@@ -446,6 +449,8 @@
 
        if (IS_NOTIFY_SOURCE (stream->notifyData)) {
          //            DEBUGMSG ("LoadFromXaml: %s", fname);
+               if (xaml_loader)
+                       delete xaml_loader;
                xaml_loader = PluginXamlLoader::FromFilename (fname, this, 
this->surface);
                TryLoad ();
        }
@@ -748,6 +753,7 @@
                return create_element_callback (xmlns, name);
 #endif
        printf ("PluginXamlLoader::CreateElement (%s, %s)\n", xmlns, name);
+       return NULL;
 }
 
 void 
@@ -836,4 +842,4 @@
        loader->set_attribute_callback = sca;
        loader->hookup_event_callback = hue;
 }
-#endif
\ No newline at end of file
+#endif

Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-09-17 15:45:26 UTC (rev 85893)
+++ trunk/moon/src/ChangeLog    2007-09-17 16:11:27 UTC (rev 85894)
@@ -1,5 +1,9 @@
 2007-09-17  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
 
+       * xaml.cpp: Fix warning.
+
+2007-09-17  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
+
        [Removed mono dependency for 1.0 moonlight applications. 
        We now have a native [Plugin]XamlLoader that is the native counterpart 
of the 
        managed Loader object, the native loader handles xaml loading when the 

Modified: trunk/moon/src/xaml.cpp
===================================================================
--- trunk/moon/src/xaml.cpp     2007-09-17 15:45:26 UTC (rev 85893)
+++ trunk/moon/src/xaml.cpp     2007-09-17 16:11:27 UTC (rev 85894)
@@ -333,6 +333,7 @@
 XamlLoader::CreateElement (const char* xmlns, const char* name)
 {
        printf ("XamlLoader::CreateElement (%s, %s)\n", xmlns, name);
+       return NULL;
 }
 
 void 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to