mirror of
https://github.com/transmission/transmission
synced 2025-02-02 20:43:51 +00:00
use tr_new(), not g_new(). I've been hacking in glib too long
This commit is contained in:
parent
59388ed0ba
commit
781c557e52
1 changed files with 2 additions and 2 deletions
|
@ -864,7 +864,7 @@ tr_torrentSwiftPulse ( tr_torrent_t * tor )
|
|||
{
|
||||
double outboundSpeedKiBs;
|
||||
double inboundSpeedKiBs;
|
||||
int j, size;
|
||||
int size;
|
||||
tr_peer_t * peer = tor->peers[ i ];
|
||||
|
||||
if( !tr_peerIsConnected( peer ) )
|
||||
|
@ -895,7 +895,7 @@ tr_torrentSwiftPulse ( tr_torrent_t * tor )
|
|||
}
|
||||
}
|
||||
|
||||
deadbeats = g_new( tr_peer_t*, tor->peerCount );
|
||||
deadbeats = tr_new( tr_peer_t*, tor->peerCount );
|
||||
deadbeatCount = 0;
|
||||
for( i=0; i<tor->peerCount; ++i ) {
|
||||
tr_peer_t * peer = tor->peers[ i ];
|
||||
|
|
Loading…
Reference in a new issue