drisw: Fix shared memory leak on drawable resize
authorAndreas Gottschling <andreasgottschling@outlook.de>
Fri, 27 Sep 2019 16:02:06 +0000 (12:02 -0400)
committerAdam Jackson <ajax@nwnk.net>
Fri, 27 Sep 2019 16:06:05 +0000 (16:06 +0000)
commitc5a2ccec5e9fa60bbec5e7b574877f8af4c14462
tree215ff9a3ab936ad44c8b60a1071d79241addaacf
parent90d58286cc76c9f6652a8f8342fe568d2fc0bb15
drisw: Fix shared memory leak on drawable resize

XDestroyImage will mark the segment as to-be-destroyed, but it will
persist until we detach it, and we weren't doing so.

Cc: mesa-stable@lists.freedesktop.org
Gitlab: https://gitlab.freedesktop.org/mesa/mesa/issues/121
Reviewed-by: Adam Jackson <ajax@redhat.com>
src/glx/drisw_glx.c