bug fix http://sourceforge.net/tracker/?func=detail&aid=3605973&group_id=55736&atid=478072
fixed memory leak