project_files/HedgewarsMobile/Classes/WeaponCellView.m
changeset 3667 9359a70df013
parent 3659 f8d5ac50e307
child 3697 d5b30d6373fc
equal deleted inserted replaced
3665:bc06dd09cb21 3667:9359a70df013
    70         craLab = [[UILabel alloc] init];
    70         craLab = [[UILabel alloc] init];
    71         craLab.backgroundColor = [UIColor clearColor];
    71         craLab.backgroundColor = [UIColor clearColor];
    72         craLab.textColor = [UIColor grayColor];
    72         craLab.textColor = [UIColor grayColor];
    73         craLab.textAlignment = UITextAlignmentCenter;
    73         craLab.textAlignment = UITextAlignmentCenter;
    74         
    74         
    75         [self.contentView addSubview:weaponName]; [weaponName release];
    75         [self.contentView addSubview:weaponName]; // [weaponName release];
    76         [self.contentView addSubview:weaponIcon]; [weaponIcon release];
    76         [self.contentView addSubview:weaponIcon]; // [weaponIcon release];
    77         
    77         
    78         [self.contentView addSubview:initialQt]; [initialQt release];
    78         [self.contentView addSubview:initialQt];  // [initialQt release];
    79         [self.contentView addSubview:probabilityQt]; [probabilityQt release];
    79         [self.contentView addSubview:probabilityQt]; // [probabilityQt release];
    80         [self.contentView addSubview:delayQt]; [delayQt release];
    80         [self.contentView addSubview:delayQt];    // [delayQt release];
    81         [self.contentView addSubview:crateQt]; [crateQt release];
    81         [self.contentView addSubview:crateQt];    // [crateQt release];
    82         
    82         
    83         [self.contentView addSubview:initialImg]; [initialImg release];
    83         [self.contentView addSubview:initialImg]; // [initialImg release];
    84         [self.contentView addSubview:probabImg]; [probabImg release];
    84         [self.contentView addSubview:probabImg];  // [probabImg release];
    85         [self.contentView addSubview:delayImg]; [delayImg release];
    85         [self.contentView addSubview:delayImg];   // [delayImg release];
    86         [self.contentView addSubview:crateImg]; [crateImg release];
    86         [self.contentView addSubview:crateImg];   // [crateImg release];
    87 
    87 
    88         [self.contentView addSubview:initialLab]; [initialLab release];
    88         [self.contentView addSubview:initialLab]; // [initialLab release];
    89         [self.contentView addSubview:probLab]; [probLab release];
    89         [self.contentView addSubview:probLab];    // [probLab release];
    90         [self.contentView addSubview:delLab]; [delLab release];
    90         [self.contentView addSubview:delLab];     // [delLab release];
    91         [self.contentView addSubview:craLab]; [craLab release];
    91         [self.contentView addSubview:craLab];     // [craLab release];
    92     }
    92     }
    93     return self;
    93     return self;
    94 }
    94 }
    95 
    95 
    96 -(void) layoutSubviews {
    96 -(void) layoutSubviews {
   153     } else
   153     } else
   154         DLog(@"error - delegate = nil!");
   154         DLog(@"error - delegate = nil!");
   155 }
   155 }
   156 
   156 
   157 -(void) dealloc {
   157 -(void) dealloc {
   158     [weaponName release];
   158     self.delegate = nil;
   159     [weaponIcon release];
   159     releaseAndNil(weaponName);
   160     [initialQt release];
   160     releaseAndNil(weaponIcon);
   161     [probabilityQt release];
   161     releaseAndNil(initialQt);
   162     [delayQt release];
   162     releaseAndNil(probabilityQt);
   163     [crateQt release];
   163     releaseAndNil(delayQt);
   164     [initialImg release];
   164     releaseAndNil(crateQt);
   165     [probabImg release];
   165     releaseAndNil(initialImg);
   166     [delayImg release];
   166     releaseAndNil(probabImg);
   167     [crateImg release];
   167     releaseAndNil(delayImg);
   168     [initialLab release];
   168     releaseAndNil(crateImg);
   169     [probLab release];
   169     releaseAndNil(initialLab);
   170     [delLab release];
   170     releaseAndNil(probLab);
   171     [craLab release];
   171     releaseAndNil(delLab);
       
   172     releaseAndNil(craLab);
   172     [super dealloc];
   173     [super dealloc];
   173 }
   174 }
   174 
   175 
   175 @end
   176 @end