On 10/21/2014 03:15 AM, Alfredo Braunstein wrote:
Unless it's a false positive by valgrind, then we are reading junk
from memory and more sooner than later we will have problems. Moreover, it
makes investigating other issues harder., so IMHO is that it is worth
lookin into. Unfortunately, I know little about that part of the
code...

My problem is that I don't really know how to read the valgrind output. But from what you've said, my guess would be that the problem is in putClipboard, in CutAndPaste.cpp. You will see that a static Buffer does get created there, so you could try modifying the static bit and see if that helps. The other thing that happens is that this static Buffer gets cloned, and then the clone is deleted at the end. That might be the freed memory, but I'm not sure where it would get read.

Richard

Reply via email to