-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
Next Major Release
-
None
In qtsoap.h:
inline QtSmartPtr(T *data = 0)
{
d = data;
r = new int;
*r = 1;
}
inline QtSmartPtr(const QtSmartPtr ©)
{
if (*copy.r != 0)
++(*copy.r);
r = copy.r;
d = copy.d;
}
In copy constructor:
r = copy.r;
But before is not freed. Memory allocated in constructor:
r = new int;