[gnome-shell] browser-plugin: Fix crash if shell is not running



commit d5b4e30eb7e26e822a1af2e2b8ef97817b3abea6
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]