Changeset 767 for trunk


Ignore:
Timestamp:
Aug 13, 2006, 9:24:23 PM (16 years ago)
Author:
livings124
Message:

Free even more memory.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.c

    r766 r767  
    507507}
    508508
    509 void tr_torrentPeersFree( tr_peer_stat_t * peers )
    510 {
     509void tr_torrentPeersFree( tr_peer_stat_t * peers, int peerCount )
     510{
     511    int i;
     512    for (i = 0; i < peerCount; i++)
     513        free(peers[i].client);
     514
    511515    free( peers );
    512516}
  • trunk/libtransmission/transmission.h

    r766 r767  
    216216typedef struct tr_peer_stat_s tr_peer_stat_t;
    217217tr_peer_stat_t * tr_torrentPeers( tr_torrent_t *, int * peerCount );
    218 void tr_torrentPeersFree( tr_peer_stat_t * );
     218void tr_torrentPeersFree( tr_peer_stat_t *, int peerCount );
    219219
    220220/***********************************************************************
  • trunk/macosx/Torrent.m

    r766 r767  
    535535    //NSLog(@"%d", tr_peerId(peer));
    536536   
     537    tr_torrentPeersFree(peers, totalPeers);
     538   
    537539    return peerDics;
    538540}
Note: See TracChangeset for help on using the changeset viewer.