Fixed #4540 (memory leak not detected ('.' or '->' is used before Function))