emulator opengl: fix crash in gralloc_free

Fixed bug in list implementation in gralloc_free which caused a crash,
also removed some log prints.

Change-Id: Ie932c838086c99567643868682419ceb122cf787
This commit is contained in:
Stas Gurtovoy
2011-06-05 08:50:28 +03:00
committed by David 'Digit' Turner
parent 1ef706f96f
commit ca629bd28e

View File

@@ -271,7 +271,7 @@ static int gralloc_free(alloc_device_t* dev,
n->next->prev = n->prev;
}
if (n->prev) {
n->prev = n->next;
n->prev->next = n->next;
}
else {
grdev->allocListHead = n->next;
@@ -304,7 +304,6 @@ static int gralloc_device_close(struct hw_device_t *dev)
static int fb_compositionComplete(struct framebuffer_device_t* dev)
{
LOGI("fb_compositionComplete");
return 0;
}