mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-02 00:51:10 +00:00
stb: ++safety.
make it safe not to leave potential dangling pointers.
This commit is contained in:
@@ -4580,6 +4580,7 @@ static int stbi__create_png_image(stbi__png *a, stbi_uc *image_data, stbi__uint3
|
||||
}
|
||||
}
|
||||
STBI_FREE(a->out);
|
||||
a->out = NULL;
|
||||
image_data += img_len;
|
||||
image_data_len -= img_len;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user