Skip to content

Commit dd6083c

Browse files
committed
More cleanup,
1 parent 0a46219 commit dd6083c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Source/FreeImage/MultiPage.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -884,8 +884,6 @@ FreeImage_LoadMultiBitmapFromMemory(FREE_IMAGE_FORMAT fif, FIMEMORY *stream, int
884884

885885
// store the MULTIBITMAPHEADER in the surrounding FIMULTIBITMAP structure
886886

887-
bitmap->data = header.get();
888-
889887
// open persistent data is supported
890888
if (node->SupportsOpenPersistent()) {
891889
header->persistent_data = node->OpenPersistent(&header->io, header->handle, header->read_only);
@@ -902,7 +900,7 @@ FreeImage_LoadMultiBitmapFromMemory(FREE_IMAGE_FORMAT fif, FIMEMORY *stream, int
902900

903901
// no need to open cache - it is in-memory by default
904902

905-
header.release();
903+
bitmap->data = header.release();
906904
return bitmap.release();
907905
}
908906
}

0 commit comments

Comments
 (0)