• Christian Persch's avatar
    Plug a mem leak · a8f1e457
    Christian Persch authored
    ... and don't call g_strv_length() just to find out if length is == 2 !
    
    ==5735== 4 bytes in 1 blocks are definitely lost in loss record 18 of 356
    ==5735==    at 0x402AD89: malloc (vg_replace_malloc.c:236)
    ==5735==    by 0x4566BDA: standard_malloc (gmem.c:85)
    ==5735==    by 0x4566F80: g_malloc (gmem.c:159)
    ==5735==    by 0x4567282: g_malloc_n (gmem.c:361)
    ==5735==    by 0x457DFCC: g_strsplit (gstrfuncs.c:2249)
    ==5735==    by 0x4053934: rsvg_parse_style (rsvg-styles.c:919)
    a8f1e457
rsvg-styles.c 56 KB