mirror of
https://github.com/transmission/transmission
synced 2025-02-03 04:53:27 +00:00
(trunk gtk) fix another crash in Properties > Options, reported by elgeneralmidi w/a valgrind log
This commit is contained in:
parent
1c7ac5bea0
commit
0f91ee9c28
1 changed files with 3 additions and 2 deletions
|
@ -1353,7 +1353,7 @@ readResponseIdle( void * vresponse )
|
|||
tag = (int)intVal;
|
||||
|
||||
data = g_hash_table_lookup( pendingRequests, &tag );
|
||||
if( data )
|
||||
if( data && data->responseFunc )
|
||||
(*data->responseFunc)(data->core, &top, data->responseFuncUserData );
|
||||
|
||||
tr_bencFree( &top );
|
||||
|
@ -1469,7 +1469,8 @@ tr_core_blocklist_update( TrCore * core )
|
|||
void
|
||||
tr_core_exec_json( TrCore * core, const char * json )
|
||||
{
|
||||
sendRequest( core, json, 0, NULL, NULL );
|
||||
const int tag = nextTag++;
|
||||
sendRequest( core, json, tag, NULL, NULL );
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue