emulator opengles: Fixed bug in gralloc unregister_buffer

Reset the ashmemBase & mappedPid on unregister_buffer

Change-Id: Ia209f88a15eb51edb39b1a799500d835b944bc87
This commit is contained in:
Stas Gurtovoy
2011-06-09 08:50:32 +03:00
committed by Guy Zadickario
parent 128f401e4f
commit 88ad268dd9

View File

@@ -441,6 +441,8 @@ static int gralloc_unregister_buffer(gralloc_module_t const* module,
if (err) {
return -EINVAL;
}
cb->ashmemBase = NULL;
cb->mappedPid = 0;
}
return 0;