Opened 13 years ago

Closed 13 years ago

Last modified 2 years ago

#8745 closed patch

Fix for memory leaks in File::exists

Reported by: jvprat Owned by: lordhoto
Priority: normal Component: --Other--
Keywords: Cc:
Game:

Description

The File::exists function creates new FilesystemNode objects in order to test their physical existence, but doesn't delete them before returning or creating a new instance. The attached patch changes the FilesystemNode to be local variables, so they're automatically deleted.

Ticket imported from: #1829748. Ticket imported from: patches/850.

Attachments (1)

file-exists-leak.patch (1.4 KB ) - added by jvprat 13 years ago.

Download all attachments as: .zip

Change History (4)

by jvprat, 13 years ago

Attachment: file-exists-leak.patch added

comment:1 by lordhoto, 13 years ago

Owner: set to lordhoto
Status: newclosed

comment:2 by lordhoto, 13 years ago

Committed, thanks for the patch.

comment:3 by digitall, 2 years ago

Component: --Other--
Note: See TracTickets for help on using tickets.