DecodeImageMem was leaking memory because the mat header wasn't being deallocated.
Merge pull request #21 from egonSchiele/master

Stop DecodeImageMem memory leak