explicitly call free method of Blitbuffer
move logMemoryUsage from koptinterface to document
Merge pull request #428 from chrox/master

explicitly call free method of Blitbuffer for credocument