mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Fixed memory leak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7325 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c5ff85000b
commit
884295b104
1 changed files with 8 additions and 8 deletions
|
@ -2552,13 +2552,13 @@
|
|||
int i;
|
||||
|
||||
// create a new col matrix
|
||||
matrix = [[[_browserMatrixClass alloc]
|
||||
initWithFrame: matrixRect
|
||||
mode: NSListModeMatrix
|
||||
prototype: _browserCellPrototype
|
||||
numberOfRows: n
|
||||
numberOfColumns: 1]
|
||||
autorelease];
|
||||
matrix = [_browserMatrixClass alloc];
|
||||
matrix = [matrix initWithFrame: matrixRect
|
||||
mode: NSListModeMatrix
|
||||
prototype: _browserCellPrototype
|
||||
numberOfRows: n
|
||||
numberOfColumns: 1];
|
||||
AUTORELEASE (matrix);
|
||||
[matrix setAllowsEmptySelection: _allowsEmptySelection];
|
||||
if (!_allowsMultipleSelection)
|
||||
[matrix setMode: NSRadioModeMatrix];
|
||||
|
@ -2582,7 +2582,6 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
//NSRect matrixRect = {{0, 0}, {100, 100}};
|
||||
// create a new col matrix
|
||||
matrix = [_browserMatrixClass alloc];
|
||||
[matrix initWithFrame: matrixRect
|
||||
|
@ -2590,6 +2589,7 @@
|
|||
prototype: _browserCellPrototype
|
||||
numberOfRows: 0
|
||||
numberOfColumns: 0];
|
||||
AUTORELEASE (matrix);
|
||||
[matrix setAllowsEmptySelection: _allowsEmptySelection];
|
||||
if (_allowsMultipleSelection)
|
||||
[matrix setMode: NSListModeMatrix];
|
||||
|
|
Loading…
Reference in a new issue