Fix leaking global variable

There seems to be a global variable leak here (fileUrl).