aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/playlist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 79f6022a5..35c09329a 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -61,12 +61,16 @@ playlist_init(struct playlist *playlist)
playlist->queued = -1;
playlist->current = -1;
+
+ playlist->prev_elapsed = g_timer_new();
}
void
playlist_finish(struct playlist *playlist)
{
queue_finish(&playlist->queue);
+
+ g_timer_destroy(playlist->prev_elapsed);
}
/**