1f9edb0b84
Before this patch, in the event of `q->image` reallocation success but `q->pixels` failure, `q->image` would point to a freed memory. After this patch, once quirc_resize() returns, `q->image` consistently point to a memory address that can be freed. There is still an inconsistency left in the example codepath: `q->{h,w}` would hold the "old" values, while `q->image` allocated size would be based in the requested width/height; hence the comment update about the state of the QR-code recognizer (it should only be passed to quirc_destroy()). |
||
---|---|---|
.. | ||
decode.c | ||
identify.c | ||
quirc.c | ||
quirc.h | ||
quirc_internal.h | ||
version_db.c |