Crash when using HAL in multiple libraries

Bastien Nocera hadess at hadess.net
Wed Jun 7 00:20:13 PDT 2006


On Tue, 2006-06-06 at 20:05 -0400, William Jon McCann wrote:
> Hey Bastien,
> 
> Bastien Nocera wrote:
> [snip]
> > No asserts, or anything like that. I was wondering whether someone could
> > take a quick look at this bit of code from Totem's playlist parser and
> > let me know whether I'm doing something plain stupid with HAL. I mostly
> > just copied code from the other 2 programs involved, which might explain
> > the problems.
> 
> It looks like there is a LibHalContext and CdCache leaked in 
> totem_cd_detect_type_with_url:
> 
>    if (!(cache = cd_cache_new (device, error)))
>      return MEDIA_TYPE_ERROR;
> 
>    type = cd_cache_disc_is_cdda (cache, error);
>    if (type == MEDIA_TYPE_ERROR && *error != NULL)
>      return type;
> 
> That may be part of it.

Good catch, thanks. Problem is that the disc in the drive is a VCD, and
is detected as such by this code, so wouldn't have exited there.

Would be something else.

-- 
Bastien Nocera <hadess at hadess.net> 



More information about the hal mailing list