aboutsummaryrefslogtreecommitdiffstats
path: root/src/Partition.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Partition.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Partition.cxx b/src/Partition.cxx
index 55750cfad..ea801f827 100644
--- a/src/Partition.cxx
+++ b/src/Partition.cxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2013 The Music Player Daemon Project
+ * Copyright (C) 2003-2014 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -19,7 +19,7 @@
#include "config.h"
#include "Partition.hxx"
-#include "Song.hxx"
+#include "DetachedSong.hxx"
void
Partition::DatabaseModified()
@@ -30,10 +30,10 @@ Partition::DatabaseModified()
void
Partition::TagModified()
{
- Song *song = pc.LockReadTaggedSong();
+ DetachedSong *song = pc.LockReadTaggedSong();
if (song != nullptr) {
playlist.TagModified(std::move(*song));
- song->Free();
+ delete song;
}
}