glx: fix shared memory leak in X11

call XShmDetach to allow X server to free shared memory

Fixes: bcd80be4 "drisw/glx: use XShm if possible"
Signed-off-by: Ray Zhang <zhanglei002@gmail.com>
25 jobs for !340 with master in 39 minutes and 15 seconds (queued for 3 seconds)
latest detached
Status Job ID Name Coverage
  Containers Build
passed #144522
containers:ubuntu

00:01:39

 
  Build+Test
passed #144537
build:make-gallium-drivers-other

00:11:03

passed #144536
build:make-gallium-drivers-radeonsi

00:03:45

passed #144535
build:make-gallium-drivers-swr

00:06:51

passed #144538
build:make-gallium-st-clover-llvm-39

00:03:18

passed #144539
build:make-gallium-st-clover-llvm-4

00:02:55

passed #144540
build:make-gallium-st-clover-llvm-5

00:06:51

passed #144541
build:make-gallium-st-clover-llvm-6

00:04:00

passed #144542
build:make-gallium-st-clover-llvm-7

00:05:52

passed #144543
build:make-gallium-st-other

00:04:09

passed #144534
build:make-loader-classic-dri

00:06:03

passed #144533
build:make-vulkan

00:07:21

passed #144529
build:meson-gallium-clover-llvm5

00:01:22

passed #144530
build:meson-gallium-clover-llvm6

00:01:16

passed #144531
build:meson-gallium-clover-llvm7

00:01:58

passed #144528
build:meson-gallium-drivers-other

00:03:32

passed #144527
build:meson-gallium-radeonsi

00:05:40

passed #144532
build:meson-gallium-st-other

00:02:01

passed #144526
build:meson-gallium-swr

00:08:23

passed #144525
build:meson-glvnd

00:01:06

passed #144524
build:meson-loader-classic-dri

00:03:21

passed #144523
build:meson-vulkan

00:02:35

passed #144545
build:scons-llvm

00:06:10

passed #144544
build:scons-nollvm

00:05:57

passed #144546
build:scons-swr

00:07:59