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; }