In memory deallocation were used sizes of new map (it can be bigger)
And then node falls.
Also in memory deallocation method was used height instead of width.
Some screenshots of debugging included.
Check locals in debug window: width_before and width_after are sizes of old map, width, height - sizes of new map, which will be used for deallocation of old map memory.
And where it fails (memory deallocation). Also there was used height instead of width
Crashes were issued by wrong memory deallocation
Also in memory deallocation method was used height instead of width.
Some screenshots of debugging included. Check locals in debug window:
width_before
andwidth_after
are sizes of old map,width
,height
- sizes of new map, which will be used for deallocation of old map memory.And where it fails (memory deallocation). Also there was used height instead of width
P.S. This version also works with Ros Jade