Files
gitx/PBGraphCellInfo.m
Nathan Kinsinger 53d92fb73e Cleanup the views when the repository window closes and stop memory leaks.
- make sure to remove themselves from KV and notification center observers
    - add the PBWebHistoryController to PBHistoryController so it can be told to close
    - replaced the -removeView methods with -closeView (-removeView was not being used)
    - clear any obj-c objects set in web scripting objects

This last item seems to be the reason that the web controllers and the current commit did not get collected which then held the repository document from being collected as well.
2010-07-04 09:46:22 -06:00

34 lines
507 B
Objective-C

//
// PBGraphCellInfo.m
// GitX
//
// Created by Pieter de Bie on 27-08-08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import "PBGraphCellInfo.h"
@implementation PBGraphCellInfo
@synthesize lines, position, numColumns, sign, nLines;
- (id)initWithPosition:(int)p andLines:(struct PBGitGraphLine *)l
{
position = p;
lines = l;
return self;
}
- (void)setLines:(struct PBGitGraphLine *)l
{
free(lines);
lines = l;
}
-(void) finalize
{
free(lines);
[super finalize];
}
@end