X-Git-Url: https://develop.uap-core.de/gitweb/uwplayer.git/blobdiff_plain/335105ec8330774af60183180c47b14e5aa4e6c1..01d5015ba093f8c5fdb18b669943c7da6450e72f:/application/playlist.c diff --git a/application/playlist.c b/application/playlist.c index e32110d..89c276b 100644 --- a/application/playlist.c +++ b/application/playlist.c @@ -32,6 +32,7 @@ void PlayListInit(MainWindow *win) { win->playlist.tracks = cxArrayListCreate(cxDefaultAllocator, NULL, CX_STORE_POINTERS, 64); + win->playlist.tracks->simple_destructor = free; win->playlist.current_track = -1; } @@ -77,3 +78,7 @@ void PlayListPlayTrack(MainWindow *win, int i) { } } } + +void PlayListClear(MainWindow *win) { + cxListClear(win->playlist.tracks); +}