mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 01:00:38 +00:00
Fix memory leaks found by analyser.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32255 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c67cd8b4f8
commit
6daffd89d7
6 changed files with 28 additions and 15 deletions
|
@ -314,8 +314,12 @@
|
|||
for (i = 0; i < numFields; i++)
|
||||
{
|
||||
NSSlider *s;
|
||||
NSCell *c;
|
||||
|
||||
s = sliders[i] = [[NSSlider alloc] initWithFrame: NSMakeRect(0, 0, 0, 16)];
|
||||
[s setCell: [[GSColorSliderCell alloc] init]];
|
||||
c = [[GSColorSliderCell alloc] init];
|
||||
[s setCell: c];
|
||||
RELEASE(c);
|
||||
[s setContinuous: YES];
|
||||
[s setMinValue: 0.0];
|
||||
[s setTitle: names[i]];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue