Ignore:
Timestamp:
Apr 13, 2011, 6:18:30 AM (11 years ago)
Author:
jordan
Message:

(trunk gtk) more heap pruning:

querying gconf2 each time the curl callack function is called is expensive, so query it once -- then again later, if the proxy settings change -- and remember the values in a local struct.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/session.c

    r12303 r12355  
    25762576
    25772577void
    2578 tr_sessionSetWebConfigFunc( tr_session * session, void (*func)(tr_session*, void*, const char* ) )
     2578tr_sessionSetWebConfigFunc( tr_session * session, void (*func)(tr_session*, void*, const char*, void* ), void * user_data )
    25792579{
    25802580    session->curl_easy_config_func = func;
    2581 }
     2581    session->curl_easy_config_user_data = user_data;
     2582}
Note: See TracChangeset for help on using the changeset viewer.