keyfile: don't free GError when it's NULL (after connection's successful update)

This commit is contained in:
Jiří Klimeš 2010-03-09 11:10:58 +01:00
parent f97c0369c0
commit 639ae507e1

View file

@ -88,7 +88,8 @@ update (NMSettingsConnectionInterface *connection,
success = parent_settings_connection_iface->update (connection, callback, user_data);
} else {
callback (connection, error, user_data);
g_error_free (error);
if (error)
g_error_free (error);
g_free (filename);
}