Fixed memory leaks when requesting an object through debugging.
Merged pull request #121