This commit is contained in:
Sebastian Ramacher 2023-12-08 17:43:06 +01:00
parent 00c9a6e683
commit 946e865cc6

View file

@ -121,20 +121,18 @@ zathura_document_information_entry_free(zathura_document_information_entry_t* en
g_free(entry); g_free(entry);
} }
zathura_signature_info_t* zathura_signature_info_t* zathura_signature_info_new(void) {
zathura_signature_info_new(void)
{
return g_try_malloc0(sizeof(zathura_signature_info_t)); return g_try_malloc0(sizeof(zathura_signature_info_t));
} }
void void zathura_signature_info_free(zathura_signature_info_t* signature) {
zathura_signature_info_free(zathura_signature_info_t* signature)
{
if (signature == NULL) { if (signature == NULL) {
return; return;
} }
g_free(signature->signer); g_free(signature->signer);
g_date_time_unref(signature->time); if (signature->time) {
g_date_time_unref(signature->time);
}
g_free(signature); g_free(signature);
} }