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 | |
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.
-rw-r--r-- | ChangeLog | 11 | ||||
-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 | ||||
-rw-r--r-- | src/ephy-nautilus-view.c | 1 | ||||
-rw-r--r-- | src/ephy-shell.c | 1 | ||||
-rw-r--r-- | src/popup-commands.c | 2 |
7 files changed, 22 insertions, 3 deletions
@@ -1,3 +1,14 @@ +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. + 2003-06-12 Christian Neumair <chris@gnome-de.org> * src/bookmarks/ephy-bookmarks-editor.c: (cmd_bookmarks_import): 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; } diff --git a/src/ephy-nautilus-view.c b/src/ephy-nautilus-view.c index 9e977dd25..e99ef1bba 100644 --- a/src/ephy-nautilus-view.c +++ b/src/ephy-nautilus-view.c @@ -541,6 +541,7 @@ gnv_popup_cmd_frame_in_new_window (BonoboUIComponent *uic, nautilus_view_open_location_force_new_window (NAUTILUS_VIEW (view), location, NULL); + g_free (location); } void diff --git a/src/ephy-shell.c b/src/ephy-shell.c index ab350a9a0..8e3201fda 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -414,6 +414,7 @@ ephy_shell_new_tab (EphyShell *shell, &previous_address); toolbar_set_location (toolbar, previous_address); toolbar_edit_location (toolbar); + g_free (previous_address); load_homepage (embed); } diff --git a/src/popup-commands.c b/src/popup-commands.c index 9a75a8ac6..ff1390704 100644 --- a/src/popup-commands.c +++ b/src/popup-commands.c @@ -439,6 +439,8 @@ popup_cmd_open_frame (EggAction *action, ephy_embed_get_location (embed, FALSE, &location); ephy_embed_load_url (embed, location); + + g_free (location); } void |