make sure we don't leak userdata struct

This commit is contained in:
Lennart Poettering 2008-08-03 16:17:17 +02:00
parent 32f63f2a61
commit 5916b5bc2d

View file

@ -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)))