Skip to content

Commit

Permalink
fix readDeepTiledFile.cpp
Browse files Browse the repository at this point in the history
Signed-off-by: Cary Phillips <[email protected]>
  • Loading branch information
cary-ilm committed Aug 2, 2023
1 parent 57eb908 commit 652dfbf
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/src/readDeepTiledFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,18 @@ readDeepTiledFile (
dataZ[i][j] = new float[sampleCount[i][j]];
dataA[i][j] = new half[sampleCount[i][j]];
}
}

file.readTiles (0, numXTiles - 1, 0, numYTiles - 1);
file.readTiles (0, numXTiles - 1, 0, numYTiles - 1);

// (after read data is processed, data must be freed:)
// (after read data is processed, data must be freed:)

for (int i = 0; i < height; i++)
for (int i = 0; i < height; i++)
{
for (int j = 0; j < width; j++)
{
for (int j = 0; j < width; j++)
{
delete[] dataZ[i][j];
delete[] dataA[i][j];
}
delete[] dataZ[i][j];
delete[] dataA[i][j];
}
}
}

0 comments on commit 652dfbf

Please sign in to comment.