The problem is the following there is an application, in one of which Activiti there is a customView. With frequent changes of orientation with active activit with the view or with a change of activations back and forth - it turns out Out of memory.
Also in Android Monitor, it is clear that after 3 minutes the garbage collector sometimes still "deigns" to clear the memory, but sometimes it does not ... and 9 switches between this and other activations (back and forth) lead to crash of the application.
And all the graphics on the canvas is drawn, the pictures are not used. This is my first application on Android .. and maybe there is a lack of a method that kills all the objects on my View and calls it on onDestroy.