Fix minor memory issues
Merge pull request #10 from falkTX/xembed

Fix minor memory issues