mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +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
35075fcb78
commit
9fcf5500b2
1 changed files with 3 additions and 0 deletions
|
@ -337,6 +337,9 @@ gst_gl_window_finalize (GObject * object)
|
||||||
while (window->nav_alive) {
|
while (window->nav_alive) {
|
||||||
g_cond_wait (&window->nav_destroy_cond, &window->nav_lock);
|
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);
|
g_mutex_unlock (&window->nav_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue