File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/java.desktop/share/native/libjavajpeg Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2000, 2022 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2000, 2024 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
@@ -666,8 +666,6 @@ static void imageio_reset(JNIEnv *env,
666666static void imageio_dispose (j_common_ptr info ) {
667667
668668 if (info != NULL ) {
669- free (info -> err );
670- info -> err = NULL ;
671669 if (info -> is_decompressor ) {
672670 j_decompress_ptr dinfo = (j_decompress_ptr ) info ;
673671 free (dinfo -> src );
@@ -678,6 +676,8 @@ static void imageio_dispose(j_common_ptr info) {
678676 cinfo -> dest = NULL ;
679677 }
680678 jpeg_destroy (info );
679+ free (info -> err );
680+ info -> err = NULL ;
681681 free (info );
682682 }
683683}
You can’t perform that action at this time.
0 commit comments