fixed minor bug in operator = Pointer
fluxgen fluxgen
1 files changed,
2 insertions(+),
3 deletions(-)
jump to
M
src/FbTk/RefCount.hh
→
src/FbTk/RefCount.hh
@@ -92,9 +92,8 @@
template <typename Pointer> RefCount<Pointer> &RefCount<Pointer>::operator = (Pointer *p) { decRefCount(); - m_data = p; - if (m_refcount == 0) - m_refcount = new unsigned int(0); + m_data = p; // set data pointer + m_refcount = new unsigned int(0); // create new counter incRefCount(); }