mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
53d92fb73e
- 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.
34 lines
507 B
Objective-C
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 |