From f4ad93a86c8087df1824531fee88fb36e2c7fc26 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Tue, 2 Jun 2009 19:12:12 +0300 Subject: ephy-shell.c: check that the network request is not NULL before unrefing it. It won't be created with, for example, about:blank. --- src/ephy-shell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3