Skip to content

Commit

Permalink
lvfntman: fix stupid mistake (#546)
Browse files Browse the repository at this point in the history
Which would trigger a use after free.
  • Loading branch information
benoit-pierre authored Nov 14, 2023
1 parent a849c38 commit 2a290ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crengine/src/lvfntman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ class LVFontCache
}
for (i = _instance_list.length(); i--; ) {
#ifndef NDEBUG
LVFontRef &fnt = _registered_list[i]->_fnt;
LVFontRef &fnt = _instance_list[i]->_fnt;
assert(fnt.isNull() || fnt.getRefCount() == 1);
#endif
delete _instance_list.remove(i);
Expand Down

0 comments on commit 2a290ca

Please sign in to comment.