]> git.sur5r.net Git - i3/i3/commit
libi3: free previous font on font load 1453/head
authorTony Crisci <tony@dubstepdish.com>
Tue, 10 Feb 2015 20:11:40 +0000 (15:11 -0500)
committerTony Crisci <tony@dubstepdish.com>
Tue, 10 Feb 2015 20:11:40 +0000 (15:11 -0500)
commite91a9174e24d8fe0616115d777f8ee641e50a782
treed4e2110e1e4622b7534d93a18cf952b042e38b68
parentd38d2dc3e3454642f8ceaaadeaa0fd8d0b88feea
libi3: free previous font on font load

When loading a new font with `load_font`, free the previously loaded
font with `free_font`.

If no font is loaded, `free_font` will simply return (instead of
crashing because of a double free).
include/libi3.h
libi3/font.c