Fixed memory leak of registered QML modules