diff options
Diffstat (limited to 'embed/mozilla/mozilla-embed.cpp')
-rw-r--r-- | embed/mozilla/mozilla-embed.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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; } |