mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
make sure we don't leak userdata struct
This commit is contained in:
parent
32f63f2a61
commit
5916b5bc2d
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ int pa__init(pa_module *m) {
|
||||||
|
|
||||||
pa_assert(m);
|
pa_assert(m);
|
||||||
|
|
||||||
u = pa_xnew0(struct userdata, 1);
|
m->userdata = u = pa_xnew0(struct userdata, 1);
|
||||||
u->core = m->core;
|
u->core = m->core;
|
||||||
|
|
||||||
if (!(u->sink_filename = pa_state_path(DEFAULT_SINK_FILE)))
|
if (!(u->sink_filename = pa_state_path(DEFAULT_SINK_FILE)))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue