diff options
Diffstat (limited to 'core/fxge/ge/cttfontdesc.cpp')
-rw-r--r-- | core/fxge/ge/cttfontdesc.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/core/fxge/ge/cttfontdesc.cpp b/core/fxge/ge/cttfontdesc.cpp index 269abfe7f7..f75039567f 100644 --- a/core/fxge/ge/cttfontdesc.cpp +++ b/core/fxge/ge/cttfontdesc.cpp @@ -34,9 +34,5 @@ int CTTFontDesc::ReleaseFace(FXFT_Face face) { if (i == 16) return -1; } - m_RefCount--; - if (m_RefCount) - return m_RefCount; - delete this; - return 0; + return --m_RefCount; } |