|
@@ -415,14 +415,13 @@ public class JmeSurfaceView extends RelativeLayout implements SystemListener, Di
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void destroy() {
|
|
public void destroy() {
|
|
- /*skip the destroy block if the invoking instance is null*/
|
|
|
|
if (glSurfaceView != null) {
|
|
if (glSurfaceView != null) {
|
|
removeGLSurfaceView();
|
|
removeGLSurfaceView();
|
|
}
|
|
}
|
|
if (legacyApplication != null) {
|
|
if (legacyApplication != null) {
|
|
legacyApplication.destroy();
|
|
legacyApplication.destroy();
|
|
}
|
|
}
|
|
- /*help the Dalvik Garbage collector to destruct the pointers, by making them nullptr*/
|
|
|
|
|
|
+ /*help the Dalvik Garbage collector to destruct the objects, by releasing their references*/
|
|
/*context instances*/
|
|
/*context instances*/
|
|
legacyApplication = null;
|
|
legacyApplication = null;
|
|
appSettings = null;
|
|
appSettings = null;
|