Fixes:    possible memory leak
Fixes:    possible memory leak

Task:     http://code.google.com/p/qtscriptgenerator/issues/detail?id=15

realXtend/qtscriptgenerator,deztructor/qtscriptgenerator,qtproject/qt-labs-qtscriptgenerator,svalaskevicius/qtscriptgenerator,deztructor/qtscriptgenerator,qtproject/qt-labs-qtscriptgenerator,deztructor/qtscriptgenerator,qtproject/qt-labs-qtscriptgenerator,sjinks/qtscriptgenerator,qtproject/qt-labs-qtscriptgenerator,dstftw/qtscriptgenerator,realXtend/qtscriptgenerator,deztructor/qtscriptgenerator,dstftw/qtscriptgenerator,svalaskevicius/qtscriptgenerator,sjinks/qtscriptgenerator,dstftw/qtscriptgenerator,svalaskevicius/qtscriptgenerator,realXtend/qtscriptgenerator,svalaskevicius/qtscriptgenerator,sjinks/qtscriptgenerator,dstftw/qtscriptgenerator,sjinks/qtscriptgenerator,deztructor/qtscriptgenerator