[Synfig-devl] [PATCH] lyr_freetype: fix crash if FcFontList returns empty FcFontSet

2015-06-22 Thread Olaf Hering
If FcFontList returns an empty FcFontSet synfig will crash because fs-fonts is a NULL pointer. Avoid that crash by checking the number of returned fonts. Signed-off-by: Olaf Hering o...@aepfle.de --- src/modules/lyr_freetype/lyr_freetype.cpp |2 +- 1 file changed, 1 insertion(+), 1

Re: [Synfig-devl] [PATCH] lyr_freetype: fix crash if FcFontList returns empty FcFontSet

2015-06-22 Thread Konstantin Dmitriev
2015-06-22 21:28 GMT+06:00 Olaf Hering o...@aepfle.de: If FcFontList returns an empty FcFontSet synfig will crash because fs-fonts is a NULL pointer. Avoid that crash by checking the number of returned fonts. Signed-off-by: Olaf Hering o...@aepfle.de ---