Fix #808, improve fix here, at this stage info is not null (deref earlier too)
parent
767699b9f4
commit
0d50039b14
|
@ -1509,9 +1509,7 @@ BGD_DECLARE(char *) gdImageStringFTEx (gdImagePtr im, int *brect, int fg, const
|
||||||
gdFree(text);
|
gdFree(text);
|
||||||
gdCacheDelete (tc_cache);
|
gdCacheDelete (tc_cache);
|
||||||
gdMutexUnlock (gdFontCacheMutex);
|
gdMutexUnlock (gdFontCacheMutex);
|
||||||
if (info) {
|
gdFree(info);
|
||||||
gdFree(info);
|
|
||||||
}
|
|
||||||
return "Problem loading glyph";
|
return "Problem loading glyph";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1527,9 +1525,7 @@ BGD_DECLARE(char *) gdImageStringFTEx (gdImagePtr im, int *brect, int fg, const
|
||||||
gdFree(text);
|
gdFree(text);
|
||||||
gdCacheDelete (tc_cache);
|
gdCacheDelete (tc_cache);
|
||||||
gdMutexUnlock (gdFontCacheMutex);
|
gdMutexUnlock (gdFontCacheMutex);
|
||||||
if (info) {
|
gdFree(info);
|
||||||
gdFree(info);
|
|
||||||
}
|
|
||||||
return "Problem rendering glyph";
|
return "Problem rendering glyph";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue