display: fix destruction of mutex.

This commit is contained in:
Gwenole Beauchesne 2012-07-25 11:37:26 +02:00
parent 437bc925f6
commit 4e53b5fe4e

View file

@ -382,7 +382,6 @@ gst_vaapi_display_destroy(GstVaapiDisplay *display)
gst_vaapi_display_cache_remove(get_display_cache(), display);
free_display_cache();
}
g_static_rec_mutex_free(&priv->mutex);
}
static gboolean
@ -577,6 +576,8 @@ gst_vaapi_display_finalize(GObject *object)
gst_vaapi_display_destroy(display);
g_static_rec_mutex_free(&display->priv->mutex);
G_OBJECT_CLASS(gst_vaapi_display_parent_class)->finalize(object);
}