mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
bug 131417, r=bz, sr=scc, a=asa, patch by Roland.Mainz@informatik.med.uni-giessen.de
Memory leak in SetUpFontCharSetInfo()
This commit is contained in:
parent
e03712c3fb
commit
9d58920112
@ -2156,9 +2156,14 @@ SetUpFontCharSetInfo(nsFontCharSetInfoXlib* aSelf)
|
|||||||
if (mapper) {
|
if (mapper) {
|
||||||
aSelf->mCCMap = MapperToCCMap(mapper);
|
aSelf->mCCMap = MapperToCCMap(mapper);
|
||||||
if (aSelf->mCCMap) {
|
if (aSelf->mCCMap) {
|
||||||
//DEBUG_PRINTF(("\n\ncharset = %s", atomToName(charset)));
|
#ifdef DEBUG
|
||||||
NS_WARNING(nsPrintfCString(256, "SetUpFontCharSetInfo: charset = '%s'", atomToName(charset)).get());
|
char *atomname = atomToName(charset);
|
||||||
|
if (atomname) {
|
||||||
|
NS_WARNING(nsPrintfCString(256, "SetUpFontCharSetInfo: charset = '%s'", atomname).get());
|
||||||
|
nsMemory::Free(atomname);
|
||||||
|
}
|
||||||
|
#endif /* DEBUG */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We used to disable special characters like smart quotes
|
* We used to disable special characters like smart quotes
|
||||||
* in CJK fonts because if they are quite a bit larger than
|
* in CJK fonts because if they are quite a bit larger than
|
||||||
|
Loading…
Reference in New Issue
Block a user