mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 06:51:44 +00:00
Fix GSToolTips leak in NSView
ToolTips can be present even when the flag is false, and it does no harm to invoke removeTipsForView: even if there are none. So this fixes a memory leak without any downside.
This commit is contained in:
parent
f5ebdcd1d2
commit
d744b26429
1 changed files with 3 additions and 4 deletions
|
@ -750,10 +750,9 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
TEST_RELEASE(_frameMatrix);
|
||||
TEST_RELEASE(_boundsMatrix);
|
||||
TEST_RELEASE(_sub_views);
|
||||
if (_rFlags.has_tooltips != 0)
|
||||
{
|
||||
[GSToolTips removeTipsForView: self];
|
||||
}
|
||||
|
||||
[GSToolTips removeTipsForView: self];
|
||||
|
||||
if (_rFlags.has_currects != 0)
|
||||
{
|
||||
[self discardCursorRects]; // Handle release of cursors
|
||||
|
|
Loading…
Reference in a new issue