mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-25 22:54:46 +03:00
Destroy hashtable if either keyDestroyFunc or valDestroyFunc exists
This commit is contained in:
parent
63efe3cb29
commit
49171828bb
|
@ -314,7 +314,7 @@ void hashtable_free(HashTable *h) {
|
|||
uint32_t i;
|
||||
|
||||
if (h->table) {
|
||||
if (h->keyDestroyFunc || h->keyDestroyFunc) {
|
||||
if (h->keyDestroyFunc || h->valDestroyFunc) {
|
||||
hashtable_foreach(h,_hashtable_destroy,NULL);
|
||||
}
|
||||
for (i=0;i<h->length;i++) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user