1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

Photo ID support (actually generic "attribute packet" support, but there

is only one attribute packet defined thus far, and it's a picture)
This commit is contained in:
David Shaw 2001-12-21 23:06:02 +00:00
parent ca058399b0
commit d560bdac18
16 changed files with 522 additions and 350 deletions

View file

@ -261,6 +261,17 @@ free_comment( PKT_comment *rem )
m_free(rem);
}
void
free_attributes(PKT_user_id *uid)
{
m_free(uid->attribs);
m_free(uid->attrib_data);
uid->attribs=NULL;
uid->attrib_data=NULL;
uid->attrib_len=0;
}
void
free_user_id (PKT_user_id *uid)
{
@ -268,8 +279,8 @@ free_user_id (PKT_user_id *uid)
if (--uid->ref)
return;
if (uid->photo)
m_free (uid->photo);
free_attributes(uid);
if (uid->prefs)
m_free (uid->prefs);
m_free (uid);