Merge "graphics: fix potential leaks for IAllocator"