summaryrefslogtreecommitdiff
path: root/src/sink.c
diff options
context:
space:
mode:
authorben <benjaminfranzke@googlemail.com>2010-07-13 18:06:41 +0200
committerben <benjaminfranzke@googlemail.com>2010-07-13 18:06:41 +0200
commit49c29950a85818f4b516a9c4c4f80c05214238a2 (patch)
tree32905da5ff7b287174c5eb6dc1f4e90dbca8446a /src/sink.c
parente81e3842b6c2b9418de5f826452f3aa8f51d6563 (diff)
parentaa7ef2d6681b05deb458e4dc94a4a9cc8940790e (diff)
downloadpa-sink-ctl-49c29950a85818f4b516a9c4c4f80c05214238a2.tar.gz
pa-sink-ctl-49c29950a85818f4b516a9c4c4f80c05214238a2.tar.bz2
pa-sink-ctl-49c29950a85818f4b516a9c4c4f80c05214238a2.zip
Merge branch 'master' of gitorious.org:pa-sink-ctl/pa-sink-ctl
Diffstat (limited to 'src/sink.c')
-rw-r--r--src/sink.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sink.c b/src/sink.c
index 01f0e04..c5ac593 100644
--- a/src/sink.c
+++ b/src/sink.c
@@ -15,6 +15,7 @@ sink_info* sink_init(void) {
sink_info* sink = (sink_info*) calloc(1, sizeof(sink_info));
sink->name = NULL;
+ sink->device = NULL;
sink->input_counter = 0;
sink->input_max = 1;
sink->input_list = NULL;
@@ -31,6 +32,9 @@ void sink_clear(sink_info* sink) {
if (sink->name != NULL)
free(sink->name);
+
+ if (sink->device != NULL)
+ free(sink->device);
sink_input_list_clear(sink->input_list, &sink->input_max);