summaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-08-03 16:17:17 +0200
committerLennart Poettering <lennart@poettering.net>2008-08-03 16:30:07 +0200
commit5916b5bc2d66da7cf4acfac00e5b784c5476df5f (patch)
tree869490b88df8152325ca43a45b3c599bc232b4dd /src/modules
parent32f63f2a61e91b37e1725923f3894ee41d8a8cb7 (diff)
make sure we don't leak userdata struct
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/module-default-device-restore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-default-device-restore.c b/src/modules/module-default-device-restore.c
index 2168ac71..7f21efa0 100644
--- a/src/modules/module-default-device-restore.c
+++ b/src/modules/module-default-device-restore.c
@@ -158,7 +158,7 @@ int pa__init(pa_module *m) {
pa_assert(m);
- u = pa_xnew0(struct userdata, 1);
+ m->userdata = u = pa_xnew0(struct userdata, 1);
u->core = m->core;
if (!(u->sink_filename = pa_state_path(DEFAULT_SINK_FILE)))