Changeset 12085


Ignore:
Timestamp:
Mar 4, 2011, 4:45:34 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) fix tr_ctorFree() crash reported by Rolcol

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-core.c

    r12071 r12085  
    10121012                core_emit_err( core, err, inf.name );
    10131013            tr_metainfoFree( &inf );
     1014            tr_ctorFree( ctor );
    10141015            break;
    10151016
     
    10171018            if( do_prompt )
    10181019                g_signal_emit( core, core_signals[ADD_PROMPT_SIGNAL], 0, ctor );
    1019             else
     1020            else {
    10201021                gtr_core_add_torrent( core, core_create_new_torrent( core, ctor ), do_notify );
     1022                tr_ctorFree( ctor );
     1023            }
    10211024            tr_metainfoFree( &inf );
    10221025            break;
    10231026    }
    10241027
    1025     tr_ctorFree( ctor );
    10261028    return err;
    10271029}
Note: See TracChangeset for help on using the changeset viewer.