pull: Fix two minor memory leaks

This commit is contained in:
Colin Walters 2012-09-23 17:32:11 -04:00
parent 34c49f0411
commit 35a1ff51d0
2 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,7 @@ ostree_fetcher_finalize (GObject *object)
self = OSTREE_FETCHER (object);
g_clear_object (&self->session);
g_clear_object (&self->tmpdir);
g_hash_table_destroy (self->sending_messages);
g_hash_table_destroy (self->message_to_request);

View File

@ -1013,6 +1013,7 @@ load_remote_repo_config (OtPullData *pull_data,
ot_transfer_out_value (out_keyfile, &ret_keyfile);
out:
g_clear_pointer (&ret_keyfile, (GDestroyNotify) g_key_file_unref);
g_clear_pointer (&target_uri, (GDestroyNotify) soup_uri_free);
return ret;
}