]> granicus.if.org Git - taglib/commitdiff
Hmm, not good -- missing "ref" here so that the reference count wasn't
authorScott Wheeler <wheeler@kde.org>
Sun, 29 Feb 2004 20:02:18 +0000 (20:02 +0000)
committerScott Wheeler <wheeler@kde.org>
Sun, 29 Feb 2004 20:02:18 +0000 (20:02 +0000)
being incremented on copy.

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@292618 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

fileref.cpp

index 700f69d1a7b92cfc75e3c6d49e04276cfd749ae2..693f4929136bc914c2c97f245c064329358e4d2f 100644 (file)
@@ -101,6 +101,8 @@ FileRef &FileRef::operator=(const FileRef &ref)
 
   d = ref.d;
 
+  d->ref();
+
   return *this;
 }