Mercurial > audlegacy
comparison src/audacious/playlist.c @ 4100:e1ecacef3789
Fix memory leak in filter_by_extension() (Bugzilla #29)
author | Jussi Judin <jjudin+audacious@iki.fi> |
---|---|
date | Wed, 19 Dec 2007 00:55:07 -0600 |
parents | 776c30747439 |
children | 0d300e0b0001 |
comparison
equal
deleted
inserted
replaced
4099:b3830c28397e | 4100:e1ecacef3789 |
---|---|
3406 g_free(tmp); tmp = NULL; | 3406 g_free(tmp); tmp = NULL; |
3407 g_free(tmp_uri); tmp_uri = NULL; | 3407 g_free(tmp_uri); tmp_uri = NULL; |
3408 | 3408 |
3409 | 3409 |
3410 base = g_path_get_basename(filename); | 3410 base = g_path_get_basename(filename); |
3411 g_free(filename); | |
3411 ext = strrchr(base, '.'); | 3412 ext = strrchr(base, '.'); |
3412 | 3413 |
3413 if(!ext) { | 3414 if(!ext) { |
3414 g_free(base); | 3415 g_free(base); |
3415 return EXT_FALSE; | 3416 return EXT_FALSE; |