diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2013-01-02 02:06:15 -0600 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2013-01-02 02:18:02 -0600 |
commit | 93fb1d4bab5fefb73393141bb3e96c9dc279e615 (patch) | |
tree | 44c0e819561efa8f26cdb6ce5c358e071d718273 /src/fclist.c | |
parent | 6b143781073cf395fd6211c75bbdc9f5b5a54936 (diff) | |
download | fontconfig-93fb1d4bab5fefb73393141bb3e96c9dc279e615.tar.gz |
Remove FcSharedStr*
Diffstat (limited to 'src/fclist.c')
-rw-r--r-- | src/fclist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fclist.c b/src/fclist.c index ba68d68..b7ae899 100644 --- a/src/fclist.c +++ b/src/fclist.c @@ -63,14 +63,14 @@ FcObjectSetAdd (FcObjectSet *os, const char *object) low = 0; mid = 0; c = 1; - object = (char *)FcSharedStr ((FcChar8 *)object); + object = strdup (object); while (low <= high) { mid = (low + high) >> 1; c = os->objects[mid] - object; if (c == 0) { - FcSharedStrFree ((FcChar8 *)object); + FcFree (object); return FcTrue; } if (c < 0) @@ -95,7 +95,7 @@ FcObjectSetDestroy (FcObjectSet *os) if (os->objects) { for (i = 0; i < os->nobject; i++) - FcSharedStrFree ((FcChar8 *)os->objects[i]); + FcFree (os->objects[i]); free ((void *) os->objects); } |