fix leaks when $.Defer {{

Hi.

I found leaks and fixed.
Please consider it.

Cheers
Tomohiro Hosaka