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 Tim-Philipp Müller
parent 35075fcb78
commit 9fcf5500b2

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);
}