stream-resotre: don't leak a name

This commit is contained in:
Marc-André Lureau 2009-02-18 19:44:55 +02:00 committed by Lennart Poettering
parent c0cf22d081
commit 0684b236f0

View file

@ -532,6 +532,7 @@ static void apply_entry(struct userdata *u, const char *name, struct entry *e) {
pa_xfree(n); pa_xfree(n);
continue; continue;
} }
pa_xfree(n);
if (u->restore_volume) { if (u->restore_volume) {
pa_cvolume v; pa_cvolume v;
@ -581,6 +582,7 @@ static void apply_entry(struct userdata *u, const char *name, struct entry *e) {
pa_xfree(n); pa_xfree(n);
continue; continue;
} }
pa_xfree(n);
if (u->restore_device && if (u->restore_device &&
e->device_valid && e->device_valid &&