소스 검색

JmeSurfaceView.java: documentation enhances

Pavly Gerges (pavl_g) 7 달 전
부모
커밋
86b6d59158
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      jme3-android/src/main/java/com/jme3/view/surfaceview/JmeSurfaceView.java

+ 1 - 2
jme3-android/src/main/java/com/jme3/view/surfaceview/JmeSurfaceView.java

@@ -415,14 +415,13 @@ public class JmeSurfaceView extends RelativeLayout implements SystemListener, Di
 
     @Override
     public void destroy() {
-        /*skip the destroy block if the invoking instance is null*/
         if (glSurfaceView != null) {
             removeGLSurfaceView();
         }
         if (legacyApplication != null) {
             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*/
         legacyApplication = null;
         appSettings = null;