mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue