repo: Don't call g_hash_table_destroy on a NULL hash
This commit is contained in:
parent
e8865af09e
commit
247e027125
|
|
@ -1197,8 +1197,11 @@ import_directory_recurse (OstreeRepo *self,
|
|||
g_clear_object (&dir_enum);
|
||||
g_clear_object (&child);
|
||||
g_clear_object (&child_info);
|
||||
if (file_checksums)
|
||||
g_hash_table_destroy (file_checksums);
|
||||
if (dir_metadata_checksums)
|
||||
g_hash_table_destroy (dir_metadata_checksums);
|
||||
if (dir_contents_checksums)
|
||||
g_hash_table_destroy (dir_contents_checksums);
|
||||
ot_clear_checksum (&ret_metadata_checksum);
|
||||
ot_clear_checksum (&ret_contents_checksum);
|
||||
|
|
|
|||
Loading…
Reference in New Issue