Changeset 33


Ignore:
Timestamp:
Aug 20, 2008, 2:56:08 PM (6 years ago)
Author:
marius
Message:

memleeks found by valgrind

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/renderer.c

    r23 r33  
    440440        sprintf(filename,"tiles/%02i.png",info->zoom); 
    441441        cairo_surface_write_to_png(info->surface, filename); 
     442        free(filename); 
    442443        cairo_destroy(info->cr); 
    443444        cairo_surface_destroy(info->surface); 
    444445        if (opts->debug > 0) 
    445446            fprintf(stdout," done.\n"); 
     447             
     448        free(info); 
    446449    } 
    447450     
  • trunk/ruleset.c

    r29 r33  
    235235 
    236236    // Local Vars 
    237     GTimer *tOsmRead = g_timer_new(); 
     237    GTimer *tRulesetRead = g_timer_new(); 
    238238    unsigned int size; 
    239239    unsigned int read = 0; 
     
    313313        fprintf(stdout,"\r Ruleset parsing done. (%i/%i) [%fs]\n", 
    314314                ruleset->cntRule,  ruleset->cntElse, 
    315                 g_timer_elapsed(tOsmRead,NULL)); 
     315                g_timer_elapsed(tRulesetRead,NULL)); 
     316     
     317    g_timer_destroy(tRulesetRead); 
    316318 
    317319    return(ruleset); 
Note: See TracChangeset for help on using the changeset viewer.