Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 81940cf

Browse files
committed
[ CID 16989 ] Fix resource leak
1 parent 133d670 commit 81940cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

engine/src/capsule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ bool MCCapsuleOpen(MCCapsuleCallback p_callback, void *p_callback_state, MCCapsu
184184
self -> decompress . next_out = self -> output_buffer;
185185
self -> decompress . avail_out = 0;
186186
if (inflateInit2(&self -> decompress, -15) != Z_OK)
187-
return false; //MCThrow(kMCErrorCapsuleInflateFailed);
187+
t_success = false; //MCThrow(kMCErrorCapsuleInflateFailed);
188188
}
189189

190190
// If successful, initialize as appropriate

0 commit comments

Comments
 (0)