Fix crash due to memory access violation
The font engine has been re-used without increasing it's reference counter Task-number: QTBUG-27596 Change-Id: Icd4c3ca131446255ad4a27da8aa9a6c69177212e Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
This commit is contained in:
parent
13846e8013
commit
a89eae8cb4
@ -726,6 +726,7 @@ void QFontEngineMultiQPA::setFallbackFamiliesList(const QStringList &fallbacks)
|
||||
// Turns out we lied about having any fallback at all.
|
||||
fallbackFamilies << fe->fontDef.family;
|
||||
engines[1] = fe;
|
||||
fe->ref.ref();
|
||||
}
|
||||
fallbacksQueried = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user