waylandsink: Destroy viewporter when done

https://bugzilla.gnome.org/show_bug.cgi?id=738079
This commit is contained in:
Nicolas Dufresne 2016-09-21 15:07:50 -04:00
parent dd062b6606
commit ba71a392a6

View file

@ -75,6 +75,9 @@ gst_wl_display_finalize (GObject * gobject)
g_hash_table_unref (self->buffers); g_hash_table_unref (self->buffers);
g_mutex_clear (&self->buffers_mutex); g_mutex_clear (&self->buffers_mutex);
if (self->viewporter)
wp_viewporter_destroy (self->viewporter);
if (self->shm) if (self->shm)
wl_shm_destroy (self->shm); wl_shm_destroy (self->shm);