mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 06:22:20 +00:00
Bug 805353 - Guard against crash if two threads call into freeBuffer concurrently. r=snorp
This commit is contained in:
parent
7493ebc264
commit
3f3bbc5732
@ -30,9 +30,8 @@ public class BufferedCairoImage extends CairoImage {
|
||||
setBitmap(bitmap);
|
||||
}
|
||||
|
||||
private void freeBuffer() {
|
||||
DirectBufferAllocator.free(mBuffer);
|
||||
mBuffer = null;
|
||||
private synchronized void freeBuffer() {
|
||||
mBuffer = DirectBufferAllocator.free(mBuffer);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user