all repos — fluxbox @ 7a36fd6204083661cf0e573e5c4e04b700b8c718

custom fork of the fluxbox windowmanager

fixed minor bug in operator = Pointer
fluxgen fluxgen
commit

7a36fd6204083661cf0e573e5c4e04b700b8c718

parent

62fc23f0e3481e38c33ed773f2a540ecf748a70e

1 files changed, 2 insertions(+), 3 deletions(-)

jump to
M src/FbTk/RefCount.hhsrc/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(); }