Avoid errors on destroy
Avoid errors on destroy

Limitations
 * Will leak small amounts of memory. Negligible compared to flash
   itself.

AxisCommunications/locomote-video-player,gaetancollaud/locomote-video-player