Merge "minui: fix mem leakage issue" am: d694016206

Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/1535652

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I06f9673bd94ebb8437e62f26db888d3c1cd04985
diff --git a/minui/resources.cpp b/minui/resources.cpp
index f635acd..d7b9277 100644
--- a/minui/resources.cpp
+++ b/minui/resources.cpp
@@ -450,5 +450,5 @@
 }
 
 void res_free_surface(GRSurface* surface) {
-  free(surface);
+  delete(surface);
 }