Permalink
Browse files

Remove observers on dealloc

  • Loading branch information...
1 parent 2eb1468 commit e3657ac64e00975d8cbb9fb0dd8037e7c02b4297 @tracyharton tracyharton committed Mar 17, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 MapView/Map/RMAbstractMercatorWebSource.m
@@ -60,6 +60,8 @@ - (void) networkOperationsNotification: (NSNotification*) notification
-(void) dealloc
{
+ [[NSNotificationCenter defaultCenter] removeObserver:self name:RMSuspendNetworkOperations object:nil];
+ [[NSNotificationCenter defaultCenter] removeObserver:self name:RMResumeNetworkOperations object:nil];
[tileProjection release];
[super dealloc];
}

0 comments on commit e3657ac

Please sign in to comment.