Fixed memory leaks when requesting an object through debugging.