gsk: Dispose the driver when the display is closed
authorMatthias Clasen <mclasen@redhat.com>
Wed, 10 May 2023 11:34:23 +0000 (07:34 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 11 May 2023 00:21:12 +0000 (20:21 -0400)
commit1a93efecf317dcded9c21d8570555914ca70f2dd
tree2398309e2e7548b7990ce1214f2ba7ff9361e7a4
parent440d56a44fb52a751569d1e76ec8c91cdc58f79a
gsk: Dispose the driver when the display is closed

This was the intention, but the object data by itself
does not achieve that: We do run dispose on the display
when it is closed, but object data is only cleared in
finalize. So listen to the ::closed signal and remove
the driver ourselves.

Fix up the drivers dispose implementation enough for
that to actually work.
gsk/gl/gskgldriver.c