Changeset 2357

Show
Ignore:
Timestamp:
07/23/07 15:32:13 (1 year ago)
Author:
dgollub
Message:

Fixed crash if <objformat> isn't set.
Fixed memory leak in freeing directory (objformat was leaking)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/file-sync/src/file_sync.c

    r2352 r2357  
    3131        if (dir->objtype) 
    3232                g_free(dir->objtype); 
     33 
     34        if (dir->objformat) 
     35                g_free(dir->objformat); 
     36 
    3337         
    3438        g_free(dir); 
     
    696700                        goto error_free_env; 
    697701                 
     702                if (!dir->objformat) 
     703                        dir->objformat = g_strdup("file"); 
    698704 
    699705                if (!osync_format_env_find_objformat(formatenv, dir->objformat)) { 
     
    705711                dir->sink = sink; 
    706712                 
    707                 //osync_objtype_sink_add_objformat(sink, "file"); 
    708713                osync_objtype_sink_add_objformat(sink, dir->objformat); 
    709714