Changeset 3259

Show
Ignore:
Timestamp:
01/14/08 23:36:02
Author:
pvanhoof
Message:

More memory leak fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-folder.c

    r3251 r3259  
    55135513                        } 
    55145514 
    5515                         if (body) 
     5515                        if (body) { 
    55165516                                camel_stream_write (stream, body, body_len); 
    5517                         else { 
     5517                                g_free (body); body = NULL; 
     5518                        } else { 
    55185519                                ex_id = CAMEL_EXCEPTION_SERVICE_UNAVAILABLE; 
    55195520                                err = TRUE; 
  • trunk/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-store.c

    r3258 r3259  
    22542254                        "STATUS %F (%s)", folder_name, type); 
    22552255 
     2256        if (camel_exception_is_set (&ex)) 
     2257                camel_exception_clear (&ex); 
     2258 
    22562259        if (!response) { 
    22572260                if (err_handle_on_fail) { 
    2258                         CamelException ex; 
    2259  
    2260                         camel_exception_init (&ex); 
    2261                         if (imap_check_folder_still_extant (imap_store, folder_name, &ex) == FALSE) { 
    2262                                 imap_folder_effectively_unsubscribed (imap_store, folder_name, &ex); 
    2263                                 imap_forget_folder (imap_store, folder_name, &ex); 
     2261                        CamelException mex = CAMEL_EXCEPTION_INITIALISER; 
     2262 
     2263                        if (imap_check_folder_still_extant (imap_store, folder_name, &mex) == FALSE) { 
     2264                                imap_folder_effectively_unsubscribed (imap_store, folder_name, &mex); 
     2265                                imap_forget_folder (imap_store, folder_name, &mex); 
    22642266                        } 
    2265                         camel_exception_clear (&ex); 
     2267 
     2268                        if (camel_exception_is_set (&mex)) 
     2269                                camel_exception_clear (&mex); 
    22662270                } 
    22672271                return NULL;