Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d3cef60 authored by Ioannis Ilkos's avatar Ioannis Ilkos
Browse files

Close HardwareBuffer after wrapping it with a bitmap

Change-Id: I9a402d645cb92bf5dbc6d8aa60a0d5f03c79111e
Bug: 211742100
Test: manual
parent dc2bbd53
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -80,6 +80,7 @@ public abstract class ContentSuggestionsService extends Service {
                        colorSpace = ColorSpace.get(ColorSpace.Named.values()[colorSpaceId]);
                    }
                    wrappedBuffer = Bitmap.wrapHardwareBuffer(contextImage, colorSpace);
                    contextImage.close();
                }
            }