← Back to team overview

unity-dev team mailing list archive

Re: Fixing a memory leak

 

On 09/02/12 07:02, Andrea Azzarone wrote:
So after a quick look I think I've found the issue.

http://bazaar.launchpad.net/~unity-team/unity/trunk/view/head:/plugins/unityshell/src/Tooltip.cpp#L516

516	 texture_bg_ = texture_from_cairo_graphics(cairo_bg);
517	 texture_mask_ = texture_from_cairo_graphics(cairo_mask);
518	 texture_outline_ = texture_from_cairo_graphics(cairo_outline);

Please use texture_ptr_from_cairo_graphics it should fix the leak :)

Sorry about the timeliness of this, but I fixed those last night :-)

https://code.launchpad.net/~thumper/unity/fix-texture-leaks/+merge/92133

Just writing the description now.

There is a known leak somewhere with the results grid, but I think this is only on shutdown. I don't have time to investigate too much more on that though.

Tim


References