diff --git a/library/JQLibrary/src/JQZopfli/zopflipng/lodepng/lodepng.cpp b/library/JQLibrary/src/JQZopfli/zopflipng/lodepng/lodepng.cpp index 760846d..59e3af9 100755 --- a/library/JQLibrary/src/JQZopfli/zopflipng/lodepng/lodepng.cpp +++ b/library/JQLibrary/src/JQZopfli/zopflipng/lodepng/lodepng.cpp @@ -4733,13 +4733,9 @@ unsigned lodepng_decode(unsigned char** out, unsigned* w, unsigned* h, if(!(*out)) { state->error = 83; /*alloc fail*/ - return state->error; - } - else - { - data = *out; - state->error = lodepng_convert(*out, data, &state->info_raw, &state->info_png.color, *w, *h); } + else state->error = lodepng_convert(*out, data, &state->info_raw, + &state->info_png.color, *w, *h); lodepng_free(data); } return state->error;