]> granicus.if.org Git - transmission/commitdiff
fix a small occasional memory leak reported by m1b & clang
authorMitchell Livingston <livings124@transmissionbt.com>
Wed, 5 Nov 2008 02:34:44 +0000 (02:34 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Wed, 5 Nov 2008 02:34:44 +0000 (02:34 +0000)
macosx/Torrent.m

index 85d3e2d82a22d8353c7c69bb16dbdaba445c5cfa..f0d5992645c955b61900ee4c3e9336e73d23cf1d 100644 (file)
@@ -1819,6 +1819,7 @@ void completenessChangeCallback(tr_torrent * torrent, tr_completeness status, vo
             node = [[FileListNode alloc] initWithFileName: name path: [parent fullPath] size: size index: index];
         
         [parent insertChild: node];
+        [node release];
     }
     
     if (isFolder)