browser-plugin: Fix crash if shell is not running

This commit is contained in:
Jürg Billeter 2011-12-06 13:36:59 +01:00 committed by Owen W. Taylor
parent e890674e49
commit 234882cbc6

View File

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