Revision 2c7faf31

b/hw/baum.c
564 564
    }
565 565
}
566 566

  
567
static void baum_close(struct CharDriverState *chr)
568
{
569
    BaumDriverState *baum = chr->opaque;
570

  
571
    qemu_free_timer(baum->cellCount_timer);
572
    if (baum->brlapi) {
573
        brlapi__closeConnection(baum->brlapi);
574
        qemu_free(baum->brlapi);
575
    }
576
    qemu_free(baum);
577
}
578

  
567 579
CharDriverState *chr_baum_init(QemuOpts *opts)
568 580
{
569 581
    BaumDriverState *baum;
......
581 593
    chr->chr_write = baum_write;
582 594
    chr->chr_send_event = baum_send_event;
583 595
    chr->chr_accept_input = baum_accept_input;
596
    chr->chr_close = baum_close;
584 597

  
585 598
    handle = qemu_mallocz(brlapi_getHandleSize());
586 599
    baum->brlapi = handle;

Also available in: Unified diff