From c92cbed15b69d823637fb565fefeb6acc3ce178e Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 10 Jun 2008 10:35:54 +0200 Subject: fix love and ban --- libpiano/main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libpiano') diff --git a/libpiano/main.c b/libpiano/main.c index 185d94c..0a14311 100644 --- a/libpiano/main.c +++ b/libpiano/main.c @@ -68,6 +68,7 @@ void PianoDestroyStations (PianoHandle_t *ph) { memset (lastStation, 0, sizeof (*lastStation)); free (lastStation); } + ph->stations = NULL; } /* FIXME: copy & waste */ @@ -94,6 +95,7 @@ void PianoDestroyPlaylist (PianoHandle_t *ph) { memset (lastSong, 0, sizeof (*lastSong)); free (lastSong); } + ph->playlist = NULL; } /* frees the whole piano handle structure -- cgit v1.2.3