Changeset 16195

Show
Ignore:
Timestamp:
04/23/08 13:54:09 (6 months ago)
Author:
piotras
Message:

unref MidgardHttpHost? per request ( if available )

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midgard/apis/php5/midgard.c

    r16192 r16195  
    437437} 
    438438 
     439static MidgardHttpHost *global_http_host = NULL; 
     440 
    439441static void php_midgard_initialize_http_request() 
    440442{ 
     
    463465        if(http_host == NULL) 
    464466                return; 
    465          
     467 
     468        global_http_host = http_host; 
     469 
    466470        MidgardRequestConfig *rcfg = midgard_http_host_get_request_config(http_host); 
    467471        if(!midgard_connection_set_request_config(mgd_handle(), rcfg)) 
     
    566570        } 
    567571 
     572        if(global_http_host != NULL) 
     573                g_object_unref(global_http_host); 
     574 
    568575        /* FIXME  
    569576        if (mgd_handle()->rcfg == NULL && mgd_handle() != NULL) {