GNOME Bugzilla – Bug 415326
Totem crash in LIRC code
Last modified: 2007-03-06 16:59:27 UTC
I have LIRC support built, but no LIRC configured on my system. When starting up, totem prints: ** Message: Couldn't read lirc config. When shutting down, it crashes. Looking at the code, it also looks like it allocates an lirc_config structure and then throws it away because lirc_readconfig allocates its own. The crash seems to be because the config structure totem allocates cannot be later passed to lirc_freeconfig. Attaching patch for both problems.
Created attachment 84064 [details] [review] let LIRC allocate and free its own structs.
Looks good.
2007-03-06 Jan Schmidt <thaytan@mad.scientist.com> * src/totem-remote.c: (totem_remote_init): Don't allocate a lirc_config structure - LIRC will do that on its own. If lirc_readconfig fails, don't pass data to LIRC that it didn't create in the first place. (Closes: #415326)