mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
tools: fix leaks
This commit is contained in:
parent
49619f2b1e
commit
d69ff4514d
2 changed files with 7 additions and 0 deletions
|
|
@ -261,7 +261,13 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
pw_main_loop_run(data.loop);
|
pw_main_loop_run(data.loop);
|
||||||
|
|
||||||
|
if (data.metadata)
|
||||||
|
pw_proxy_destroy((struct pw_proxy*)data.metadata);
|
||||||
|
pw_proxy_destroy((struct pw_proxy*)data.registry);
|
||||||
|
pw_core_disconnect(data.core);
|
||||||
|
pw_context_destroy(data.context);
|
||||||
pw_main_loop_destroy(data.loop);
|
pw_main_loop_destroy(data.loop);
|
||||||
|
pw_deinit();
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -221,5 +221,6 @@ int main(int argc, char *argv[])
|
||||||
} else {
|
} else {
|
||||||
res = dump_filter(&data);
|
res = dump_filter(&data);
|
||||||
}
|
}
|
||||||
|
pw_deinit();
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue