Merge branch 'master' of github.com:gnustep/libs-gui into NSBrowser_bindings_branch

This commit is contained in:
Gregory John Casamento 2025-01-01 16:42:03 -05:00
commit a3ebaf2630
6 changed files with 13 additions and 4 deletions

View file

@ -210,6 +210,10 @@ implement, so we can't do that. */
Class rep;
NSData* data;
// Not worth trying to load an empty file
if (nil == filename)
return nil;
// Is the file extension already the file type?
ext = [filename pathExtension];
if (!ext)

View file

@ -161,7 +161,7 @@ int main(int argc, char **argv)
}
// printf("bounds=%@\n",NSStringFromRect([p bounds]));
DESTROY(p);
DESTROY(arp);
return 0;

View file

@ -700,6 +700,7 @@ int main(int argc, char **argv)
PAUSE
}
DESTROY(p);
DESTROY(arp);
return 0;

View file

@ -32,6 +32,9 @@ int main()
pass([copy1Bitmap bitmapData] != [copy2Bitmap bitmapData],
"Copied bitmaps have a different image data pointer - could cause image data corruption.");
DESTROY(copy1Bitmap);
DESTROY(copy2Bitmap);
DESTROY(origBitmap);
[arp release];
return 0;
}

View file

@ -10,7 +10,7 @@ int main()
START_SET("NSMenuItem key equivalent mask")
NSString *mask = @"NSKeyEquivModMask";
NSMenuItem *item = [[NSMenuItem alloc] init];
NSMenuItem *item = AUTORELEASE([[NSMenuItem alloc] init]);
NSMutableData *data = [NSMutableData data];
NSNumber *encodedKeyMask;
NSError *error = nil;
@ -23,7 +23,8 @@ int main()
item.keyEquivalentModifierMask = NSShiftKeyMask;
archiver = [[NSKeyedArchiver alloc] initForWritingWithMutableData: data];
archiver = AUTORELEASE(
[[NSKeyedArchiver alloc] initForWritingWithMutableData: data]);
[archiver encodeRootObject: item];
[archiver finishEncoding];

View file

@ -11,7 +11,7 @@ int main(int argc, char **argv)
{
CREATE_AUTORELEASE_POOL(arp);
NSRect f = NSMakeRect(0,0,100,100);
NSView *v = [[NSView alloc] initWithFrame: f];
NSView *v = AUTORELEASE([[NSView alloc] initWithFrame: f]);
int passed = 1;
if (!NSEqualRects([v visibleRect], f))