From 3eee9fbb6df1dbbcefe1f0dfdf1295c95ddf3279 Mon Sep 17 00:00:00 2001 From: Sai Kiran Korwar Date: Tue, 16 Jun 2015 17:13:35 +0530 Subject: bootanimation: Call eglReleaseThread in threadLoop Add eglReleaseThread call in the threadLoop function to ensure that the thread properly cleans up its resources before exiting. Change-Id: I90dff47370e7acaecc046c43f0bb274214a29f77 --- cmds/bootanimation/BootAnimation.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'cmds/bootanimation/BootAnimation.cpp') diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp index 8f361ce1a779..44b432e69fbc 100644 --- a/cmds/bootanimation/BootAnimation.cpp +++ b/cmds/bootanimation/BootAnimation.cpp @@ -322,6 +322,7 @@ bool BootAnimation::threadLoop() mFlingerSurface.clear(); mFlingerSurfaceControl.clear(); eglTerminate(mDisplay); + eglReleaseThread(); IPCThreadState::self()->stopProcess(); return r; } -- cgit v1.2.3-59-g8ed1b