hungio / route-me

Automatically exported from code.google.com/p/route-me
0 stars 0 forks source link

Removing marker with label crash #136

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1. Add some markers to the map and use changeLabelWithText to add a label to 
the markers.
2. Remove the markers
3. Application crashes. There is not so much informations in the debugger but 
it seems to be 
related to a release issue

Apply on the simulator but should be the same on device.

I use the latest version of route-me.

I've been able to solve this issue by modifying the dealloc function of 
RMMarker : 

- (void) dealloc 
{
    [data release];
    [label release];
    [textForegroundColor release];
    [textBackgroundColor release];
    [super dealloc];
}

In general, it is not a good practice to use customized setter in the dealloc. 
In this case, the 
setLabel probably implies a release on the label variable with retain count 
equal to 0. 

B.

Original issue reported on code.google.com by ben_han...@hotmail.com on 9 Apr 2010 at 3:47

GoogleCodeExporter commented 8 years ago
this also happens with custom labels (setting the marker.label to a custom 
created uilabel, etc..).

This has been reported more then a year ago.
Any progress on the fix ?

Original comment by GShoCKo...@gmail.com on 14 May 2010 at 12:21

GoogleCodeExporter commented 8 years ago
The Marker Manager/layer is on the short-list of refactoring in order to also 
support multi-layer tiles.  Stay 
tuned to the mailing list for information regarding this and possible Route-Me 
project relocation.

Original comment by dbainbri...@gmail.com on 14 May 2010 at 12:32