Fix a crash when the view has been deallocated, but IKImageView dragging session has not ended yet.

This commit is contained in:
Damiano Galassi committed 2017-10-09 09:09:54 +02:00
1 parent 216bf4438a
commit 20d7e81eef
1 file changed
+1
@@ -115,6 +115,7 @@ static NSArray<NSArray *> *_mediaKinds;
- (void)dealloc
{
_artworksView.draggingDestinationDelegate = nil;
[[NSNotificationCenter defaultCenter] removeObserver:self];
}