vdpau: close display on finalize
authorCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>
Mon, 27 Apr 2009 18:21:44 +0000 (20:21 +0200)
committerJan Schmidt <thaytan@noraisin.net>
Sat, 20 Jun 2009 14:21:33 +0000 (15:21 +0100)
sys/vdpau/gstvdpdevice.c

index d7a074a7638a0a39c5e1c788242530eed9308c2c..84fe8922a1159d1319402f996b6e232de8727780 100644 (file)
@@ -50,6 +50,7 @@ gst_vdp_device_finalize (GObject * object)
   GstVdpDevice *device = (GstVdpDevice *) object;
 
   device->vdp_device_destroy (device->device);
+  XCloseDisplay (device->display);
   g_free (device->display_name);
 
   G_OBJECT_CLASS (gst_vdp_device_parent_class)->finalize (object);