FlorianMielke / FMMoveTableView

Discontinued: Please use iOS 11's Drag & Drop capability instead.
MIT License
623 stars 101 forks source link

Memory leak in FMMoveTableView.m line 121 #17

Closed rzolin closed 10 years ago

rzolin commented 11 years ago

I am using the latest 1.1.2 cocoa pod and have found a memory leak.

In method:

- (void)setup
{
    UILongPressGestureRecognizer *movingGestureRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(handleLongPress:)];
    [movingGestureRecognizer setDelegate:self];
    [self addGestureRecognizer:movingGestureRecognizer];
    [self setMovingGestureRecognizer:movingGestureRecognizer];
}

movingGestureRecognizer is not released.

FlorianMielke commented 10 years ago

The project needs to run under ARC, so can't be a memory leak.