瀏覽代碼

Removed a repeating allocation of memory (#1507)

Resolves #1495
This line allocated some memory that was already allocated in the beginning of the function and was essentially creating a leak.
pull/1515/head
hristo 4 年之前
committed by GitHub
父節點
當前提交
551597d579
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 0 行新增1 行删除
  1. +0
    -1
      src/models.c

+ 0
- 1
src/models.c 查看文件

@ -1486,7 +1486,6 @@ Mesh GenMeshPlane(float width, float length, int resX, int resZ)
mesh.vertices = (float *)RL_MALLOC(plane->ntriangles*3*3*sizeof(float));
mesh.texcoords = (float *)RL_MALLOC(plane->ntriangles*3*2*sizeof(float));
mesh.normals = (float *)RL_MALLOC(plane->ntriangles*3*3*sizeof(float));
mesh.vboId = (unsigned int *)RL_CALLOC(DEFAULT_MESH_VERTEX_BUFFERS, sizeof(unsigned int));
mesh.vertexCount = plane->ntriangles*3;
mesh.triangleCount = plane->ntriangles;

Loading…
取消
儲存