Skip to content

Commit

Permalink
Merge branch 'main' of github.com:onera/Cassiopee
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit128 committed Oct 18, 2024
2 parents 98904f2 + 9a43ef9 commit 0c083c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cassiopee/Converter/Converter/IO/GenIO_binpng.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ E_Int K_IO::GenIO::pngwrite(
if (setjmp(png_jmpbuf(png_ptr))) {delete[] row_pointers; return 1;}

png_write_end(png_ptr, NULL);
png_destroy_write_struct(&png_ptr, &info_ptr);

/* cleanup allocations */
delete [] row_pointers;
Expand Down
2 changes: 1 addition & 1 deletion Cassiopee/Post/Post/computeDiv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ PyObject* K_POST::computeDiv2Struct3D(
E_Float ffx, ffy, ffz;
for (E_Int n = 0; n < nfld; n++)
{
E_Float* gpdv = gp.begin(n);
E_Float* gpdv = gp.begin(n+1);
E_Float* fpx = faceField.begin(3*n+1);
E_Float* fpy = faceField.begin(3*n+2);
E_Float* fpz = faceField.begin(3*n+3);
Expand Down

0 comments on commit 0c083c6

Please sign in to comment.