From 53d825c05b5eafa38c10a5a9b1b9e58f1bc1051d Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 12 Jun 2003 17:43:58 +0000 Subject: Sigh. Fix some more mem leaks. 2003-06-12 Christian Persch * embed/ephy-embed-popup.c: (embed_popup_open_frame_cmd): * embed/ephy-embed-utils.c: (ephy_embed_utils_save): * embed/mozilla/mozilla-embed.cpp: (impl_go_up): * src/ephy-nautilus-view.c: (gnv_popup_cmd_frame_in_new_window): * src/ephy-shell.c: (ephy_shell_new_tab): * src/popup-commands.c: (popup_cmd_open_frame): Sigh. Fix some more mem leaks. --- embed/ephy-embed-popup.c | 2 ++ embed/ephy-embed-utils.c | 1 + embed/mozilla/mozilla-embed.cpp | 7 ++++--- 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'embed') diff --git a/embed/ephy-embed-popup.c b/embed/ephy-embed-popup.c index e66678714..d7dfc955a 100644 --- a/embed/ephy-embed-popup.c +++ b/embed/ephy-embed-popup.c @@ -607,6 +607,8 @@ embed_popup_open_frame_cmd (BonoboUIComponent *uic, FALSE, &location); ephy_embed_load_url (popup->priv->embed, location); + + g_free (location); } static void diff --git a/embed/ephy-embed-utils.c b/embed/ephy-embed-utils.c index 4e68964b9..3ea0f1095 100644 --- a/embed/ephy-embed-utils.c +++ b/embed/ephy-embed-utils.c @@ -169,6 +169,7 @@ ephy_embed_utils_save (GtkWidget *window, g_free (dirName); g_free (fileName); + g_free (target); } /** diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp index 6d6a34726..20728a695 100644 --- a/embed/mozilla/mozilla-embed.cpp +++ b/embed/mozilla/mozilla-embed.cpp @@ -502,7 +502,7 @@ impl_can_go_up (EphyEmbed *embed) { g_free (s); result = G_OK; - } + } else { result = G_FAILED; @@ -562,12 +562,13 @@ impl_go_up (EphyEmbed *embed) g_return_val_if_fail (uri != NULL, G_FAILED); parent_uri = mozilla_embed_get_uri_parent (uri); + g_free (uri); g_return_val_if_fail (parent_uri != NULL, G_FAILED); ephy_embed_load_url (embed, parent_uri); - + g_free (parent_uri); - + return G_OK; } -- cgit v1.2.3