X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=dvi%2Fmdvi-lib%2Fhash.c;h=d030650a0be7379f23eadbf6d400109b90bcdf5d;hb=a5cd65d8446083b285ffdb367f8b4d06bbf08d38;hp=5487bed59df9392374810476abcc26ce040f74ac;hpb=c3e1500a4815225f08e1b20dd066559e8c92c280;p=evince.git diff --git a/dvi/mdvi-lib/hash.c b/dvi/mdvi-lib/hash.c index 5487bed5..d030650a 100644 --- a/dvi/mdvi-lib/hash.c +++ b/dvi/mdvi-lib/hash.c @@ -156,7 +156,7 @@ void *mdvi_hash_remove(DviHashTable *hash, DviHashKey key) if(buck) { data = buck->data; - xfree(buck); + mdvi_free(buck); } return data; } @@ -184,7 +184,7 @@ void *mdvi_hash_remove_ptr(DviHashTable *hash, DviHashKey key) hash->nkeys--; /* destroy the bucket */ ptr = buck->data; - xfree(buck); + mdvi_free(buck); return ptr; } @@ -196,7 +196,7 @@ int mdvi_hash_destroy_key(DviHashTable *hash, DviHashKey key) return -1; if(hash->hash_free) hash->hash_free(buck->key, buck->data); - xfree(buck); + mdvi_free(buck); return 0; } @@ -211,12 +211,12 @@ void mdvi_hash_reset(DviHashTable *hash, int reuse) hash->buckets[i] = buck->next; if(hash->hash_free) hash->hash_free(buck->key, buck->data); - xfree(buck); + mdvi_free(buck); } } hash->nkeys = 0; if(!reuse && hash->buckets) { - xfree(hash->buckets); + mdvi_free(hash->buckets); hash->buckets = NULL; hash->nbucks = 0; } /* otherwise, it is left empty, ready to be reused */