core: Remove ot_clear_checksum() in favor of g_clear_pointer()

This commit is contained in:
Colin Walters committed 2012-07-17 08:08:57 -04:00
1 parent c8d7fc216d
commit 57fcafd1ab
4 files changed
+3 -11

No files matched your search

+1 -1
View File
@@ -563,7 +563,7 @@ ostree_checksum_file_from_input (GFileInfo *file_info,
ret = TRUE;
ot_transfer_out_value (out_csum, &ret_csum);
out:
ot_clear_checksum (&checksum);
g_clear_pointer (&checksum, (GDestroyNotify)g_checksum_free);
return ret;
}
+1 -1
View File
@@ -1056,7 +1056,7 @@ stage_object_internal (OstreeRepo *self,
(void) unlink (ot_gfile_get_path_cached (temp_file));
if (raw_temp_file)
(void) unlink (ot_gfile_get_path_cached (raw_temp_file));
ot_clear_checksum (&checksum);
g_clear_pointer (&checksum, (GDestroyNotify) g_checksum_free);
return ret;
}