Logo Search packages:      
Sourcecode: zbar version File versions  Download package

void zbar_processor_destroy ( zbar_processor_t processor  ) 

destructor. cleans up all resources associated with the processor

Definition at line 287 of file processor.c.

References zbar_image_scanner_destroy(), zbar_processor_destroy(), and zbar_processor_init().

Referenced by zbar_processor_destroy().

{
    zbar_processor_init(proc, NULL, 0);

    if(proc->scanner) {
        zbar_image_scanner_destroy(proc->scanner);
        proc->scanner = NULL;
    }

    _zbar_mutex_destroy(&proc->mutex);
    _zbar_processor_cleanup(proc);

    assert(!proc->wait_head);
    assert(!proc->wait_tail);
    assert(!proc->wait_next);

    proc_waiter_t *w, *next;
    for(w = proc->free_waiter; w; w = next) {
        next = w->next;
        _zbar_event_destroy(&w->notify);
        free(w);
    }

    err_cleanup(&proc->err);
    free(proc);
}


Generated by  Doxygen 1.6.0   Back to index