Fix memory leak.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14852 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2002-10-27 02:47:43 +00:00
parent bd5048dc2b
commit 48ecaabf8b
2 changed files with 9 additions and 5 deletions

View file

@ -1,17 +1,21 @@
2002-10-25 Adam Fedor <fedor@gnu.org>
2002-10-26 Adam Fedor <fedor@gnu.org>
* Source/NSOutlineView.m (-drawRow:clipRect:): Release imageCell
(patch from Stefan <urbanek@host.sk>).
2002-10-25 Adam Fedor <fedor@gnu.org>
* Source/NSApplication.m: Remove some NSDebugLogs.
* Source/NSDocument.m
(-fileNameFromRunningSavePanelForSaveOperation:): Set dicectory to
(-fileNameFromRunningSavePanelForSaveOperation:): Set directory to
the currentDirectory if no fileName is set. Localize.
(-fileAttributesToWriteToFile:ofType:saveOperation:): Stib implement.
(-fileAttributesToWriteToFile:ofType:saveOperation:): Stub implement.
* Source/NSDocumentController.m: Document.
(+sharedDocumentController): Proper allocation/init. Set ourselves
as the application delegate if there isn't one already.
(-init): Retrieve list of recent documents.
(-reviewUnsavedDocumentsWithAlertTitle:cancellable:) Save
(-reviewUnsavedDocumentsWithAlertTitle:cancellable:): Save
current directory. Localize.
(-currentDirectory): Rewrite according to docs.

View file

@ -1003,7 +1003,7 @@ static NSImage *unexpandable = nil;
drawingRect.origin.x += indentationFactor + [image size].width + 5;
drawingRect.size.width -= indentationFactor + [image size].width + 5;
RELEASE(imageCell);
}
[cell drawWithFrame: drawingRect inView: self];