Opened 18 years ago

Closed 18 years ago

Last modified 6 years ago

#8544 closed patch

Leak in File::Open (on OS X) and unzOpen (on all)

Reported by: SF/madm00se Owned by: vinterstum
Priority: normal Component: --Other--
Version: Keywords:
Cc: Game:

Description

On Mac OS X File::Open does CFStringCreateWithBytes and CFBundleCopyResourceURL. It does not CFRelease either object returned.

unzOpen (in common/unzip.cpp) leaks if us->file.open(path) fails.

I touched some indentation in unzOpen too.

Ticket imported from: #1503716. Ticket imported from: patches/649.

Attachments (1)

leaks-and-indentation.diff (1.6 KB ) - added by SF/madm00se 18 years ago.
Leaks begone!

Download all attachments as: .zip

Change History (6)

by SF/madm00se, 18 years ago

Attachment: leaks-and-indentation.diff added

Leaks begone!

comment:1 by vinterstum, 18 years ago

Applied, thanks :)

comment:2 by vinterstum, 18 years ago

Resolution: fixed
Status: newclosed

comment:3 by Kirben, 15 years ago

Owner: set to vinterstum

comment:4 by Kirben, 15 years ago

Resolution: fixed

comment:5 by digitall, 6 years ago

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