Merge pull request #397 from NiKiZe/master

Remove duplicate xfree in cliprdr_process_format_list
This commit is contained in:
Marc-André Moreau 2012-02-03 15:07:43 -08:00
commit 545ae8e4a7

View File

@ -272,19 +272,8 @@ void cliprdr_process_format_list(cliprdrPlugin* cliprdr, STREAM* s, uint32 dataL
xfree(format_name->name); xfree(format_name->name);
} }
if (cliprdr->format_names != NULL)
{
for (i = 0; i < cliprdr->num_format_names; i++)
{
format_name = &cliprdr->format_names[i];
if (format_name->length > 0)
xfree(format_name->name);
}
xfree(cliprdr->format_names); xfree(cliprdr->format_names);
cliprdr->format_names = NULL; cliprdr->format_names = NULL;
}
cliprdr->num_format_names = 0; cliprdr->num_format_names = 0;