memory leak in 3756

git-svn-id: http://farmanager.googlecode.com/svn/trunk@11301 ea59307d-ff68-5b67-5a21-acd59c66a581
fix 3752

git-svn-id: http://farmanager.googlecode.com/svn/trunk@11303 ea59307d-ff68-5b67-5a21-acd59c66a581