Package: gnomeradio Version: 1.8-2 Severity: important Tags: patch
When I tried to change radio device to, for example /dev/radio 1, and this does not exist, gnomeradio crash Solution is "Don't stop radio twice to avoid double free or corruption in file radio.c" ------------------------------------------------------------------------------ v4l2.c ------------------------------------------------------------------------------ RadioDev* v4l2_radio_dev_new (void) { - RadioDev *dev; + RadioDev *dev; V4L2RadioDev *v4l2_dev; v4l2_dev = malloc (sizeof (V4L2RadioDev)); ------------------------------------------------------------------------------ v4l1.c ------------------------------------------------------------------------------ RadioDev* v4l1_radio_dev_new (void) { - RadioDev *dev; + RadioDev *dev; V4L1RadioDev *v4l1_dev; v4l1_dev = malloc(sizeof(V4L1RadioDev)); ------------------------------------------------------------------------------ radio.c This is a bad idea since consecutive radio_stop and radio_start will cause bad things to happen ------------------------------------------------------------------------------ int radio_init(char *device, DriverType driver) { - int rv = -1; - if (dev) { - radio_stop(); - } + int rv = -1; switch (driver) { case DRIVER_ANY: -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org