westbaer / FMEngine

Objective-C Framework for the last.fm API
MIT License
68 stars 15 forks source link

Leak in FMEngine.m #1

Open mwaterfall opened 14 years ago

mwaterfall commented 14 years ago

This is a great framework! From using it I've noticed a leak in the FMEngine.m file. The NSMutableURLRequest *request object is allocated but not released in the method dataForMethod:withParameters:useSignature:httpMethod:error:.

mwaterfall commented 14 years ago

Also, if it is a GET request, it will result in a crash due to the "request" object being autoreleased instead of alloc/init. This can be seen in the method: dataForMethod:withParameters:useSignature:httpMethod:error: