all repos — openbox @ 2d9c03a44125c4fa51fd2e4b3054ee9395ff6150

openbox fork - make it a bit more like ryudo

allow freeing NULL pixmap masks
Dana Jansens danakj@orodu.net
commit

2d9c03a44125c4fa51fd2e4b3054ee9395ff6150

parent

c2bb32dcd1539796f0c8da49d3df3468553ad256

1 files changed, 5 insertions(+), 3 deletions(-)

jump to
M render/mask.crender/mask.c

@@ -14,9 +14,11 @@ }

void pixmap_mask_free(pixmap_mask *m) { - XFreePixmap(ob_display, m->mask); - g_free(m->data); - g_free(m); + if (m) { + XFreePixmap(ob_display, m->mask); + g_free(m->data); + g_free(m); + } } void mask_draw(Pixmap p, TextureMask *m, Rect *position)