[reSIProcate] Memory leak in SipMessage.
Hi all,
I ran some memory leak profiling and the result showed a memory leak of 8 bytes in the SipMessage class whenever the copy constructor was called.
Looking into the constructor, method 'init' is called which in turn calls method 'clear'.
Method 'clear' executes
// !bwc! The "invalid" 0 index.
mHeaders.push_back(getEmptyHfvl());
But when method 'init' continues executing
// .bwc. Clear out the pesky invalid 0
index.
mHeaders.clear();
the memory got lost.
I assume the problem also will occur
when calling the assignment operator.
Thanks
/Janne