summaryrefslogtreecommitdiff
path: root/libpiano
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-08-28 12:58:37 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-08-28 12:58:37 +0200
commit0449c38fa879b8a1a470674538322bcf6eec0d58 (patch)
tree0a0277a36fac60eba2221113fe4abfc7ee364b33 /libpiano
parent0eeab2177ebc7748da58abd9381d99c70a44e5ae (diff)
downloadpianobar-0449c38fa879b8a1a470674538322bcf6eec0d58.tar.gz
pianobar-0449c38fa879b8a1a470674538322bcf6eec0d58.tar.bz2
pianobar-0449c38fa879b8a1a470674538322bcf6eec0d58.zip
piano: Don't read freed memory
Diffstat (limited to 'libpiano')
-rw-r--r--libpiano/src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpiano/src/main.c b/libpiano/src/main.c
index ec11685..2653853 100644
--- a/libpiano/src/main.c
+++ b/libpiano/src/main.c
@@ -486,6 +486,7 @@ PianoReturn_t PianoDeleteStation (PianoHandle_t *ph, PianoStation_t *station) {
}
PianoDestroyStation (curStation);
PianoFree (curStation, sizeof (*curStation));
+ break;
}
lastStation = curStation;
curStation = curStation->next;