On 2010/10/10 05:11, Tony Miller <mcfiredr...@gmail.com> wrote: > +static char * > +get_container_name(const char *path_fs) > +{ > + const char *subtune_suffix = uri_get_suffix(path_fs); > + char *path_container=g_strdup(path_fs); > + GPatternSpec *path_with_subtune=g_pattern_spec_new( > + g_strconcat("*/" SUBTUNE_PREFIX "???.", subtune_suffix, NULL)); > + > + if(!g_pattern_match(path_with_subtune, > + strlen(path_container), path_container, NULL)){ > + return path_container; > + } > + > + char *ptr=g_strrstr(path_container, "/" SUBTUNE_PREFIX); > + if(ptr) *ptr='\0'; > + > + return path_container; > +}
The g_pattern_spec_new() call leaks memory, can you please fix it and resubmit the patch? ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ Musicpd-dev-team mailing list Musicpd-dev-team@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team