mirror of
https://github.com/transmission/transmission
synced 2025-01-01 12:35:22 +00:00
Move tr_metainfoFree call higher per review comment
This commit is contained in:
parent
b3b1feb744
commit
193d68cc5c
1 changed files with 1 additions and 2 deletions
|
@ -294,6 +294,7 @@ tr_torrentSetMetadataPiece (tr_torrent * tor, int piece, const void * data, in
|
|||
if (success && !tr_getBlockSize (info.pieceSize))
|
||||
{
|
||||
tr_torrentSetLocalError (tor, "%s", _("Magnet torrent's metadata is not usable"));
|
||||
tr_metainfoFree (&info);
|
||||
success = false;
|
||||
}
|
||||
|
||||
|
@ -308,8 +309,6 @@ tr_torrentSetMetadataPiece (tr_torrent * tor, int piece, const void * data, in
|
|||
tr_sessionSetTorrentFile (tor->session, tor->info.hashString, tor->info.torrent);
|
||||
tr_torrentGotNewInfoDict (tor);
|
||||
tr_torrentSetDirty (tor);
|
||||
}else{
|
||||
tr_metainfoFree(&info);
|
||||
}
|
||||
|
||||
tr_variantFree (&newMetainfo);
|
||||
|
|
Loading…
Reference in a new issue