HomePhabricator

Evas text textblock: call evas_font_free even on null fonts

Authored by herdsman on Jul 15 2018, 2:35 PM.

Description

Evas text textblock: call evas_font_free even on null fonts

A null font set can potentially be stored and passed on. There is no
specific fallback in our codebase to roll-back if something like that
occurs.

This fixes a case where an entry of a null font was not removed from the
fonts_cache and was leaked to subsequent tests (the null font entry was
not removed from the fonts_cache).

Note that this was only apparent when EFL was built with
--disable-fontconfig, likely due to fontconfig succeeding to always
retrieve some non-null font.

@fix

Details

Committed
herdsmanJul 16 2018, 6:45 AM
Parents
rEFL93397449d405: Eina binbuf: add explicit null-check before magic-check
Branches
Unknown
Tags
Unknown