libnm: fix nm_vpn_plugin_old_set_connection() for connection == NULL

This commit is contained in:
Jiří Klimeš 2015-05-19 14:43:36 +02:00
parent dbf1794070
commit 08fbe75edd

View file

@ -109,6 +109,7 @@ nm_vpn_plugin_old_set_connection (NMVpnPluginOld *plugin,
g_clear_object (&priv->connection); g_clear_object (&priv->connection);
if (connection)
priv->connection = g_object_ref (connection); priv->connection = g_object_ref (connection);
} }