glwindow: Fix memory leak of navigation thread

When stopping the navigation thread, call g_thread_join() to release
the resources hold by it.

https://bugzilla.gnome.org/show_bug.cgi?id=758820
This commit is contained in:
Haihua Hu 2015-11-30 09:36:09 +08:00 committed by Sebastian Dröge
parent 384987341b
commit 62d79ae326

View file

@ -337,6 +337,9 @@ gst_gl_window_finalize (GObject * object)
while (window->nav_alive) {
g_cond_wait (&window->nav_destroy_cond, &window->nav_lock);
}
/* release resource hold by navigation thread */
g_thread_join(window->priv->navigation_thread);
window->priv->navigation_thread = NULL;
g_mutex_unlock (&window->nav_lock);
}