mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
mainloop-glib: destroy the source
This commit is contained in:
parent
e4c94bf12d
commit
a14e16806f
1 changed files with 1 additions and 0 deletions
|
|
@ -102,6 +102,7 @@ pa_glib_mainloop *pa_glib_mainloop_new(GMainContext *c)
|
||||||
|
|
||||||
void pa_glib_mainloop_free(pa_glib_mainloop* g)
|
void pa_glib_mainloop_free(pa_glib_mainloop* g)
|
||||||
{
|
{
|
||||||
|
g_source_destroy(&g->source->base);
|
||||||
pa_mainloop_free(g->loop);
|
pa_mainloop_free(g->loop);
|
||||||
free(g);
|
free(g);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue