Update BMPmaker.cpp

Now memory is unallocated correctly.
Merge pull request #1 from haf-cz/patch-1

Fixing not correctly unallocated memory.