Merge pull request #139 from williameveretteggplant/master

Fix minor memory leaks
This commit is contained in:
Fred Kiefer 2022-02-14 22:45:48 +01:00 committed by GitHub
commit 20f5694444
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -98,6 +98,8 @@
- (void) dealloc
{
TEST_RELEASE(_border_color);
TEST_RELEASE(_fill_color);
TEST_RELEASE(_cell);
[super dealloc];
}

View file

@ -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;