mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
remove global memblock statistic variables in favor of memblock_stat objects
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@137 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
81822a7519
commit
e75b65715b
32 changed files with 158 additions and 80 deletions
|
|
@ -68,6 +68,8 @@ struct pa_core* pa_core_new(struct pa_mainloop_api *m) {
|
|||
c->subscription_defer_event = NULL;
|
||||
c->subscription_event_queue = NULL;
|
||||
c->subscriptions = NULL;
|
||||
|
||||
c->memblock_stat = pa_memblock_stat_new();
|
||||
|
||||
pa_check_for_sigpipe();
|
||||
|
||||
|
|
@ -102,6 +104,8 @@ void pa_core_free(struct pa_core *c) {
|
|||
|
||||
pa_xfree(c->default_source_name);
|
||||
pa_xfree(c->default_sink_name);
|
||||
|
||||
pa_memblock_stat_unref(c->memblock_stat);
|
||||
|
||||
pa_xfree(c);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue