mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 20:50:44 +00:00
Merge branch 'master' of github.com:gnustep/libs-gui into NSBrowser_bindings_branch
This commit is contained in:
commit
a3ebaf2630
6 changed files with 13 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -161,7 +161,7 @@ int main(int argc, char **argv)
|
|||
}
|
||||
|
||||
// printf("bounds=%@\n",NSStringFromRect([p bounds]));
|
||||
|
||||
DESTROY(p);
|
||||
DESTROY(arp);
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -700,6 +700,7 @@ int main(int argc, char **argv)
|
|||
PAUSE
|
||||
}
|
||||
|
||||
DESTROY(p);
|
||||
DESTROY(arp);
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue