mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 15:31:14 +00:00
Small tweak forgotten in last update.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@21562 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
75055208a2
commit
c701bd1b44
1 changed files with 10 additions and 2 deletions
|
@ -49,7 +49,10 @@
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
cairo_font_face_destroy(_fontFace);
|
||||
if (_fontFace)
|
||||
{
|
||||
cairo_font_face_destroy(_fontFace);
|
||||
}
|
||||
RELEASE(_familyName);
|
||||
RELEASE(_faceName);
|
||||
RELEASE(_displayName);
|
||||
|
@ -144,7 +147,12 @@
|
|||
|
||||
- (cairo_font_face_t *)fontFace
|
||||
{
|
||||
_fontFace =_cairo_simple_font_face_create([_familyName cString], _c_slant, _c_weight);
|
||||
if (!_fontFace)
|
||||
{
|
||||
// FIXME: This function is not exported by cairo
|
||||
_fontFace = _cairo_simple_font_face_create([_familyName cString],
|
||||
_c_slant, _c_weight);
|
||||
}
|
||||
|
||||
return _fontFace;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue