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:
parent
ca058399b0
commit
d560bdac18
16 changed files with 522 additions and 350 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue