aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/mozilla-embed.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp
index d94ffd686..497bc3753 100644
--- a/embed/mozilla/mozilla-embed.cpp
+++ b/embed/mozilla/mozilla-embed.cpp
@@ -468,11 +468,12 @@ impl_go_up (EphyEmbed *embed)
parent_uri = mozilla_embed_get_uri_parent (uri);
g_free (uri);
- g_return_if_fail (parent_uri != NULL);
- ephy_embed_load_url (embed, parent_uri);
-
- g_free (parent_uri);
+ if (parent_uri)
+ {
+ ephy_embed_load_url (embed, parent_uri);
+ g_free (parent_uri);
+ }
}
static char *