dbe: Fix use-after-free when closing (or resetting) the server

The extension close functions are called before FreeAllResources. If
DestroyWindow is unwrapped before FreeAllResources, this can lead to a
dangling dbeWindow if the Window is freed before the dbeWindow is freed.

This also unwraps the DestroyWindow of any other extension that is
initialized after dbe.

Avoid the use-after-free by unwrapping in CloseScreen instead of in the
extension close function.

Signed-off-by: Peter Harris <pharris@opentext.com>
4 jobs for dbe in 12 minutes and 13 seconds (queued for 3 seconds)
latest
Status Job ID Name Coverage
  Docker Image
passed debian-buster #6575356

00:06:16

 
  Build And Test
passed autotools #6575357

00:05:57

passed meson #6575358

00:02:18

passed meson-noglamor #6575359

00:01:40