diff options
author | Xan Lopez <xan@gnome.org> | 2009-06-03 00:12:12 +0800 |
---|---|---|
committer | Xan Lopez <xan@gnome.org> | 2009-06-03 00:12:34 +0800 |
commit | f4ad93a86c8087df1824531fee88fb36e2c7fc26 (patch) | |
tree | 48ed3d61a66098aa452d232e104e45b3deaf9054 | |
parent | a62be2bb0ad051a60b99b02e39c58f96dd5b3b9e (diff) | |
download | gsoc2013-epiphany-f4ad93a86c8087df1824531fee88fb36e2c7fc26.tar.gz gsoc2013-epiphany-f4ad93a86c8087df1824531fee88fb36e2c7fc26.tar.zst gsoc2013-epiphany-f4ad93a86c8087df1824531fee88fb36e2c7fc26.zip |
ephy-shell.c: check that the network request is not NULL before unrefing it.
It won't be created with, for example, about:blank.
-rw-r--r-- | src/ephy-shell.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c index 0c013b804..6a6926e62 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -577,7 +577,8 @@ ephy_shell_new_tab (EphyShell *shell, previous_embed, request, flags, EPHY_EMBED_CHROME_ALL, FALSE, 0); - g_object_unref (request); + if (request) + g_object_unref (request); return embed; } |