]> git.sur5r.net Git - i3/i3/commit - libi3/draw_util.c
Make freeing surfaces idempotent 2065/head
authorIngo Bürk <ingo.buerk@tngtech.com>
Wed, 18 Nov 2015 14:32:45 +0000 (15:32 +0100)
committerIngo Bürk <ingo.buerk@tngtech.com>
Mon, 23 Nov 2015 21:18:02 +0000 (22:18 +0100)
commitbf442ff5de277537dca40ee194bec984eeaa33c4
tree0a26a3ec4bffa79f31300fe3a89c90feb33b6ea1
parent780cb8d15d07febbb9be47cb1bc1201072b31838
Make freeing surfaces idempotent

If a window with border is set to "border none" and then closed, we would
call cairo_destroy / cairo_surface_destroy twice, causing an assertion
failure in cairo as the objects already had zero references the second
time. We fix this by explicitly setting these objects to NULL.

relates to #1278
libi3/draw_util.c