Fix previous.

--HG--
extra : convert_revision : c8915be223a5803f58583be20b99a31eabf69263
This commit is contained in:
Juan RP 2008-12-23 15:27:38 +01:00
parent 0c0e796fc5
commit 30997094d6

View file

@ -279,17 +279,16 @@ xbps_register_repository(const char *uri)
obj = prop_string_create_cstring(uri); obj = prop_string_create_cstring(uri);
if (!xbps_add_obj_to_array(array, obj)) { if (!xbps_add_obj_to_array(array, obj)) {
prop_object_release(obj); prop_object_release(obj);
goto fail; return false;
} }
/* Write dictionary into plist file. */ /* Write dictionary into plist file. */
if (!prop_dictionary_externalize_to_file(dict, plist)) { if (!prop_dictionary_externalize_to_file(dict, plist)) {
prop_object_release(obj); prop_object_release(obj);
goto fail; return false;
} }
prop_object_release(obj); prop_object_release(obj);
prop_object_release(dict);
} }
return true; return true;