diff options
Diffstat (limited to 'pith/handle.c')
-rw-r--r-- | pith/handle.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pith/handle.c b/pith/handle.c index 01b9b4d8..9dc8cd59 100644 --- a/pith/handle.c +++ b/pith/handle.c @@ -129,6 +129,17 @@ free_handle(HANDLE_S **h) fs_give((void **) &(*h)->h.url.name); } + if((*h)->type == imgData){ /* destroy malloc'd data */ + if((*h)->h.img.src) + fs_give((void **) &(*h)->h.img.src); + + if((*h)->h.img.alt) + fs_give((void **) &(*h)->h.img.alt); + + if((*h)->h.url.tool) + fs_give((void **) &(*h)->h.url.tool); + } + free_handle_locations(&(*h)->loc); fs_give((void **) h); |