Don't leak DoodadInfo's from GeometryInfo

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2012-03-01 19:45:37 +02:00
parent c800c60ace
commit c24d97e45e
1 changed files with 4 additions and 0 deletions

View File

@ -663,6 +663,10 @@ ClearGeometryInfo(GeometryInfo * info)
FreeShapes(info->shapes, info);
if (info->sections)
FreeSections(info->sections, info);
if (info->doodads)
FreeDoodads(info->doodads, NULL, info);
if (info->dfltDoodads)
FreeDoodads(info->dfltDoodads, NULL, info);
info->widthMM = 0;
info->heightMM = 0;
info->dfltCornerRadius = 0;