diff options
author | Keith Packard <keithp@keithp.com> | 2008-05-04 01:26:40 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2008-05-04 01:26:40 -0700 |
commit | 13a14cbf56d56c14d53e5f55d7fcc4bdec900994 (patch) | |
tree | fc40341ab17667448b1c84b271e72a75d49a612a /src/fcpat.c | |
parent | c6c9400d67ffefa95100d03e6650ea901b05116b (diff) | |
download | fontconfig-13a14cbf56d56c14d53e5f55d7fcc4bdec900994.tar.gz |
Fix a few memory tracking mistakes.
The built-in memory tracking code in fontconfig relies on a lot of manual
function call tracking. A pain, but it helps debug leaks.
Diffstat (limited to 'src/fcpat.c')
-rw-r--r-- | src/fcpat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fcpat.c b/src/fcpat.c index 9a62ec9..35127f2 100644 --- a/src/fcpat.c +++ b/src/fcpat.c @@ -1054,7 +1054,7 @@ FcStrStaticNameFini (void) next = b->next; name = (char *) (b + 1); size = sizeof (struct objectBucket) + strlen (name) + 1; - FcMemFree (FC_MEM_STATICSTR, size); + FcMemFree (FC_MEM_STATICSTR, size + sizeof (int)); free (b); } FcObjectBuckets[i] = 0; |