Changeset 3639

Show
Ignore:
Timestamp:
04/30/08 12:43:22
Author:
pvanhoof
Message:

2008-04-30 Philip Van Hoof <pvanhoof@gnome.org>

        • Enlarged a lock for the transport-account in camel
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ChangeLog

    r3637 r3639  
     12008-04-30  Philip Van Hoof <pvanhoof@gnome.org> 
     2 
     3        * Enlarged a lock for the transport-account in camel 
     4 
    152008-04-30  Sergio Villar Senin  <svillar@igalia.com> 
    26 
  • trunk/libtinymail-camel/camel-lite/camel/camel-stream-buffer.c

    r3235 r3639  
    8181        sbf->size = BUF_SIZE; 
    8282        sbf->buf = g_malloc(BUF_SIZE); 
     83 
     84        if (!sbf->buf) 
     85                g_critical ("Memory error"); 
     86 
    8387        sbf->ptr = sbf->buf; 
    8488        sbf->end = sbf->buf; 
     
    8791        sbf->linesize = 80; 
    8892        sbf->linebuf = g_malloc(sbf->linesize); 
     93 
     94        if (!sbf->linebuf) 
     95                g_critical ("Memory error"); 
     96 
    8997} 
    9098 
     
    96104        if (!(sbf->flags & BUF_USER)) { 
    97105                g_free(sbf->buf); 
    98         } 
     106                sbf->buf = NULL; 
     107        } 
     108 
    99109        if (sbf->stream) 
    100110                camel_object_unref (sbf->stream); 
    101111 
    102112        g_free(sbf->linebuf); 
     113        sbf->linebuf = NULL; 
    103114} 
    104115 
  • trunk/libtinymail-camel/tny-camel-transport-account.c

    r3632 r3639  
    207207        }  
    208208 
    209         g_static_rec_mutex_unlock (apriv->service_lock); 
    210  
    211209        message = _tny_camel_msg_get_camel_mime_message (TNY_CAMEL_MSG (msg)); 
    212210 
     
    235233        } else  
    236234                suc = TRUE; 
     235 
     236        g_static_rec_mutex_unlock (apriv->service_lock); 
    237237 
    238238        if (camel_exception_is_set (&ex) || !suc)