mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 16:53:46 +01:00
types
This commit is contained in:
parent
00c9a6e683
commit
946e865cc6
@ -121,20 +121,18 @@ zathura_document_information_entry_free(zathura_document_information_entry_t* en
|
||||
g_free(entry);
|
||||
}
|
||||
|
||||
zathura_signature_info_t*
|
||||
zathura_signature_info_new(void)
|
||||
{
|
||||
zathura_signature_info_t* zathura_signature_info_new(void) {
|
||||
return g_try_malloc0(sizeof(zathura_signature_info_t));
|
||||
}
|
||||
|
||||
void
|
||||
zathura_signature_info_free(zathura_signature_info_t* signature)
|
||||
{
|
||||
void zathura_signature_info_free(zathura_signature_info_t* signature) {
|
||||
if (signature == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
g_free(signature->signer);
|
||||
g_date_time_unref(signature->time);
|
||||
if (signature->time) {
|
||||
g_date_time_unref(signature->time);
|
||||
}
|
||||
g_free(signature);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user