mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Fix memory leak of tool tips
Prevents the creation of tool tips where they don't already exist. Tool tips only need to be removed in the rect if there are tool tips.
This commit is contained in:
parent
3190ce4363
commit
2403c21978
1 changed files with 4 additions and 1 deletions
|
@ -4040,7 +4040,10 @@ Figure out how the additional layout stuff is supposed to work.
|
|||
}
|
||||
|
||||
// Remove any existing tooltips in the redrawn rectangle.
|
||||
[[GSToolTips tipsForView: self] removeToolTipsInRect: rect];
|
||||
if (_rFlags.has_tooltips != 0)
|
||||
{
|
||||
[[GSToolTips tipsForView: self] removeToolTipsInRect: rect];
|
||||
}
|
||||
{
|
||||
NSRange r;
|
||||
NSUInteger i = drawnRange.location;
|
||||
|
|
Loading…
Reference in a new issue