don't deref d twice (CID 3445)

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@652701 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Stephan Kulow 2007-04-11 20:34:57 +00:00
parent 1fb31274e5
commit f37023791f

View File

@ -597,8 +597,6 @@ ByteVector &ByteVector::operator=(const ByteVector &v)
ByteVector &ByteVector::operator=(char c)
{
if(d->deref())
delete d;
*this = ByteVector(c);
return *this;
}