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:
parent
384987341b
commit
62d79ae326
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user