text: font: add .finalize callback
authorDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 3 Jan 2013 13:03:58 +0000 (14:03 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 3 Jan 2013 13:03:58 +0000 (14:03 +0100)
commit82ee6c8e51e4601b1c53c21c3845cc0b5afcb487
tree6a2963644795cd4be8abaf652ec9d8663642fe27
parent327c7f0690fa4e9e7b0d469d35c80b4fb8932382
text: font: add .finalize callback

Each font-backend now also gets a .finalize callback that is called when
the last font-user drops its font. This will allow modules to destroy
themself when the last reference is dropped.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/text.h
src/text_font.c
src/text_font_8x16.c
src/text_font_freetype2.c
src/text_font_pango.c
src/text_font_unifont.c