fix memory leaks

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@402891 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Scott Wheeler
2005-04-03 16:35:55 +00:00
parent abbf24ade7
commit 60f73eb537
5 changed files with 71 additions and 35 deletions

View File

@ -62,6 +62,11 @@ APE::Item::Item(const Item &item)
d = new ItemPrivate(*item.d);
}
APE::Item::~Item()
{
delete d;
}
Item &APE::Item::operator=(const Item &item)
{
delete d;

View File

@ -69,6 +69,11 @@ namespace TagLib {
*/
Item(const Item &item);
/*!
* Destroys the item.
*/
virtual ~Item();
/*!
* Copies the contents of \a item into this item.
*/