mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-27 13:36:00 +01:00
types
This commit is contained in:
parent
00c9a6e683
commit
946e865cc6
1 changed files with 6 additions and 8 deletions
|
@ -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);
|
||||
if (signature->time) {
|
||||
g_date_time_unref(signature->time);
|
||||
}
|
||||
g_free(signature);
|
||||
}
|
Loading…
Reference in a new issue