diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-06-13 01:43:58 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-06-13 01:43:58 +0800 |
commit | 53d825c05b5eafa38c10a5a9b1b9e58f1bc1051d (patch) | |
tree | c8492813e1638aef0d87b035f4c17883a7e4aaf7 /embed | |
parent | e7b6bad87295b8a0849d18eae16038d4964a6f85 (diff) | |
download | gsoc2013-epiphany-53d825c05b5eafa38c10a5a9b1b9e58f1bc1051d.tar gsoc2013-epiphany-53d825c05b5eafa38c10a5a9b1b9e58f1bc1051d.tar.gz gsoc2013-epiphany-53d825c05b5eafa38c10a5a9b1b9e58f1bc1051d.tar.bz2 gsoc2013-epiphany-53d825c05b5eafa38c10a5a9b1b9e58f1bc1051d.tar.lz gsoc2013-epiphany-53d825c05b5eafa38c10a5a9b1b9e58f1bc1051d.tar.xz gsoc2013-epiphany-53d825c05b5eafa38c10a5a9b1b9e58f1bc1051d.tar.zst gsoc2013-epiphany-53d825c05b5eafa38c10a5a9b1b9e58f1bc1051d.zip |
Sigh. Fix some more mem leaks.
2003-06-12 Christian Persch <chpe@cvs.gnome.org>
* 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.
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-embed-popup.c | 2 | ||||
-rw-r--r-- | embed/ephy-embed-utils.c | 1 | ||||
-rw-r--r-- | embed/mozilla/mozilla-embed.cpp | 7 |
3 files changed, 7 insertions, 3 deletions
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; } |