[gnome-shell/gnome-3-2] browser-plugin: Fix crash if shell is not running
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-2] browser-plugin: Fix crash if shell is not running
- Date: Wed, 18 Jan 2012 15:30:52 +0000 (UTC)
commit 234882cbc65324bdd7052629ac01e8751f584f6d
Author: JÃrg Billeter <j bitron ch>
Date: Tue Dec 6 13:36:59 2011 +0100
browser-plugin: Fix crash if shell is not running
browser-plugin/browser-plugin.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/browser-plugin/browser-plugin.c b/browser-plugin/browser-plugin.c
index e9f9950..fccb061 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]