fix some memory leaks and crashing when opening by dragging

This commit is contained in:
Mitchell Livingston
2007-06-28 01:36:30 +00:00
parent 831cd4a3da
commit 96e1688e6f
2 changed files with 20 additions and 16 deletions

View File

@@ -84,6 +84,7 @@
NSEnumerator * enumerator = [files objectEnumerator];
tr_info_t info;
while ((file = [enumerator nextObject]))
{
if (tr_torrentParse(fLib, [file UTF8String], NULL, &info) == TR_OK)
{
count++;
@@ -97,6 +98,8 @@
folder = info.multifile;
}
}
tr_metainfoFree(&info);
}
if (count <= 0)
return;