Opened 16 years ago

Closed 16 years ago

Last modified 5 years ago

#8745 closed patch

Fix for memory leaks in File::exists

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


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 16 years ago.

Download all attachments as: .zip

Change History (4)

by jvprat, 16 years ago

Attachment: file-exists-leak.patch added

comment:1 by lordhoto, 16 years ago

Owner: set to lordhoto
Status: newclosed

comment:2 by lordhoto, 16 years ago

Committed, thanks for the patch.

comment:3 by digitall, 5 years ago

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