tyhoff / Clock

A Pebble Smartwatch application called Clock - it's just a clock
11 stars 1 forks source link

Destroy everything on unload #7

Open tyhoff opened 10 years ago

tyhoff commented 10 years ago

We need to make sure to destroy all elements after the view is unloaded. One can tell if they forgot to unload something by getting the below message with a non-zero "Still allocated" value.

Heap Usage for <Clock>: Available <13368B> Used <1824B> Still allocated <868B>