Fix all planning EngineObjects memory leaks

Signed-off-by: MHesham <mhesham.fcis@gmail.com>