From 3ae55e08643e8dcda5b7b48d48021445d0490861 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 11 Apr 2007 20:35:37 +0000 Subject: [PATCH] don't dereference d twice (CID 3444) git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@652702 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- taglib/toolkit/tbytevector.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/taglib/toolkit/tbytevector.cpp b/taglib/toolkit/tbytevector.cpp index cb8edc3d..8971e705 100644 --- a/taglib/toolkit/tbytevector.cpp +++ b/taglib/toolkit/tbytevector.cpp @@ -603,8 +603,6 @@ ByteVector &ByteVector::operator=(char c) ByteVector &ByteVector::operator=(const char *data) { - if(d->deref()) - delete d; *this = ByteVector(data); return *this; }