1
0
Fork 0
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:
Charles Kerr 2009-06-15 20:29:26 +00:00
parent 1c7ac5bea0
commit 0f91ee9c28

View file

@ -1353,7 +1353,7 @@ readResponseIdle( void * vresponse )
tag = (int)intVal; tag = (int)intVal;
data = g_hash_table_lookup( pendingRequests, &tag ); data = g_hash_table_lookup( pendingRequests, &tag );
if( data ) if( data && data->responseFunc )
(*data->responseFunc)(data->core, &top, data->responseFuncUserData ); (*data->responseFunc)(data->core, &top, data->responseFuncUserData );
tr_bencFree( &top ); tr_bencFree( &top );
@ -1469,7 +1469,8 @@ tr_core_blocklist_update( TrCore * core )
void void
tr_core_exec_json( TrCore * core, const char * json ) 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 void