From 5590990e31cce98ab0f975541999862ab6778e25 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 14 Nov 2004 17:40:19 +0000 Subject: Save one strdup. 2004-11-14 Christian Persch * embed/mozilla/EphyBrowser.cpp: Save one strdup. --- embed/mozilla/EphyBrowser.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'embed/mozilla') diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp index 153e16c4d..316034c2d 100644 --- a/embed/mozilla/EphyBrowser.cpp +++ b/embed/mozilla/EphyBrowser.cpp @@ -218,9 +218,7 @@ EphyFaviconEventListener::HandleEvent(nsIDOMEvent* aDOMEvent) #endif /* ok, we accept this as a valid favicon for this site */ - char *url = g_strdup (faviconUrl.get()); - g_signal_emit_by_name (mOwner, "ge_favicon", url); - g_free (url); + g_signal_emit_by_name (mOwner, "ge_favicon", faviconUrl.get()); } return NS_OK; -- cgit v1.2.3