소스 검색

Fixed a buffer overrun issue

smetz84 3 년 전
부모
커밋
8cb6eba0cf
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      Source/GLS.Scene.pas

+ 2 - 0
Source/GLS.Scene.pas

@@ -6299,6 +6299,8 @@ begin
           CreateContext(AWindowHandle);
       except
         FreeAndNil(FRenderingContext);
+        if Assigned(FCamera) and Assigned(FCamera.FScene) then
+          FCamera.FScene.RemoveBuffer(Self);
         raise;
       end;
     end;