From 234882cbc65324bdd7052629ac01e8751f584f6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Tue, 6 Dec 2011 13:36:59 +0100 Subject: [PATCH] browser-plugin: Fix crash if shell is not running --- browser-plugin/browser-plugin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/browser-plugin/browser-plugin.c b/browser-plugin/browser-plugin.c index e9f99502b..fccb0616b 100644 --- a/browser-plugin/browser-plugin.c +++ b/browser-plugin/browser-plugin.c @@ -643,7 +643,8 @@ plugin_get_shell_version (PluginObject *obj, STRINGN_TO_NPVARIANT (buffer, length, *result); out: - g_variant_unref (res); + if (res) + g_variant_unref (res); return ret; }