Fix memory leaks
This commit is contained in:
parent
957625bafa
commit
1a0391c099
|
@ -187,6 +187,8 @@ scanDirs (FcStrList *list, FcConfig *config, FcBool force, FcBool really_force,
|
||||||
ret++;
|
ret++;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
FcStrFree (rooted_dir);
|
||||||
|
rooted_dir = NULL;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1379,6 +1379,7 @@ _get_real_path_from_prefix(FcConfigParse *parse, const FcChar8 *path, const FcCh
|
||||||
if (parent)
|
if (parent)
|
||||||
{
|
{
|
||||||
retval = FcStrBuildFilename (parent, path, NULL);
|
retval = FcStrBuildFilename (parent, path, NULL);
|
||||||
|
FcStrFree (parent);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue