X-Git-Url: https://develop.uap-core.de/gitweb/uwplayer.git/blobdiff_plain/5cb490b04836ef624cdd0ba975ee5c2ff2e51a23..HEAD:/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); +}