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

Commit 7d306fbf authored by lijiazi's avatar lijiazi
Browse files

minui: fix mem leakage issue



Use free to release GRSurface object will not call data_'s
DataDeleter, then the buf data_ points to will leakage.
Use delete release GRSurface object.

Test: manual

Change-Id: I53a9ea5a4ad67de1662c707a5ea59d738bd9c2d8
Signed-off-by: default avatarlijiazi <lijiazi@xiaomi.com>
parent a8e39494
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -450,5 +450,5 @@ int res_create_localized_alpha_surface(const char* name,
}

void res_free_surface(GRSurface* surface) {
  free(surface);
  delete(surface);
}