Why should I set the PANEL's bmap pointer to NULL ???

If I'd do that I would have to save the pointer somewhere else to remove the BMAP. That doesn't seem to make sense.

I think the only important thing is that the PANEL doesn't try to access the BMAP anymore after removing the pointer to the BMAP within the PANEL.