[kazehakase-svn] [3459] * module/embed/gecko/EmbedProgress.cpp: Do not copy string for

Zurück zum Archiv-Index

svnno****@sourc***** svnno****@sourc*****
Sat Mar 8 21:28:29 JST 2008


Revision: 3459
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3459
Author:   ikezoe
Date:     2008-03-08 21:28:28 +0900 (Sat, 08 Mar 2008)

Log Message:
-----------
	* module/embed/gecko/EmbedProgress.cpp: Do not copy string for
	"status_change" signal.

Modified Paths:
--------------
    kazehakase/trunk/ChangeLog
    kazehakase/trunk/module/embed/gecko/gtkmozembed/EmbedProgress.cpp

Modified: kazehakase/trunk/ChangeLog
===================================================================
--- kazehakase/trunk/ChangeLog	2008-03-08 11:37:13 UTC (rev 3458)
+++ kazehakase/trunk/ChangeLog	2008-03-08 12:28:28 UTC (rev 3459)
@@ -10,6 +10,8 @@
 	* module/embed/gecko/EmbedStream.[cpp|h]: Removed.
 	* module/embed/gecko/EmbedPrivate.[cpp|h]: Use nsIWebBrowserStream
 	instead of EmbedStream.
+	* module/embed/gecko/EmbedProgress.cpp: Do not copy string for
+	"status_change" signal.
 
 2008-03-07  Hiroyuki Ikezoe  <poinc****@ikezo*****>
 

Modified: kazehakase/trunk/module/embed/gecko/gtkmozembed/EmbedProgress.cpp
===================================================================
--- kazehakase/trunk/module/embed/gecko/gtkmozembed/EmbedProgress.cpp	2008-03-08 11:37:13 UTC (rev 3458)
+++ kazehakase/trunk/module/embed/gecko/gtkmozembed/EmbedProgress.cpp	2008-03-08 12:28:28 UTC (rev 3459)
@@ -178,17 +178,12 @@
 			      nsresult         aStatus,
 			      const PRUnichar *aMessage)
 {
-  // need to make a copy so we can safely cast to a void *
-  PRUnichar *tmpString = nsCRT::strdup(aMessage);
-
   g_signal_emit(G_OBJECT(mOwner->mOwningWidget),
 		moz_embed_signals[STATUS_CHANGE], 0,
 		static_cast<void *>(aRequest),
 		static_cast<int>(aStatus),
 		static_cast<void *>(tmpString));
 
-  nsMemory::Free(tmpString);
-
   return NS_OK;
 }
 




More information about the Kazehakase-cvs mailing list
Zurück zum Archiv-Index