glx: fix shared memory leak in X11
authorRay Zhang <zhanglei002@gmail.com>
Wed, 27 Feb 2019 06:54:05 +0000 (06:54 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 28 Feb 2019 04:23:02 +0000 (14:23 +1000)
commitb344e32cdf7064a1f2ff7ef37027edda6589404f
tree8ef15bb89317b8add50467521dbf805d1e8aee4d
parente907337fad51ec2f78b202c65a3a25d6b88ffcd8
glx: fix shared memory leak in X11

call XShmDetach to allow X server to free shared memory

Fixes: bcd80be49a8260c2233d "drisw/glx: use XShm if possible"
Signed-off-by: Ray Zhang <zhanglei002@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/glx/drisw_glx.c