diff --git a/CHANGES.rst b/CHANGES.rst index aca922149..eb15f3792 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -140,7 +140,7 @@ Changelog (Pillow) - GIF: Permit LZW code lengths up to 12 bits in GIF decode #2813 [wiredfool] -- Fix unterminiated string and unchecked exception in _font_text_asBytes. #2825 +- Fix unterminated string and unchecked exception in _font_text_asBytes. #2825 [wiredfool] - PPM: Use fixed list of whitespace, rather relying on locale, fixes #272. #2831 diff --git a/src/PIL/JpegImagePlugin.py b/src/PIL/JpegImagePlugin.py index d286f793f..9a190fb4a 100644 --- a/src/PIL/JpegImagePlugin.py +++ b/src/PIL/JpegImagePlugin.py @@ -724,7 +724,7 @@ def _save(im, fp, filename): ) # if we optimize, libjpeg needs a buffer big enough to hold the whole image - # in a shot. Guessing on the size, at im.size bytes. (raw pizel size is + # in a shot. Guessing on the size, at im.size bytes. (raw pixel size is # channels*size, this is a value that's been used in a django patch. # https://github.com/matthewwithanm/django-imagekit/issues/50 bufsize = 0 diff --git a/src/libImaging/Storage.c b/src/libImaging/Storage.c index 8262d864a..7e0c14339 100644 --- a/src/libImaging/Storage.c +++ b/src/libImaging/Storage.c @@ -327,7 +327,7 @@ memory_get_block(ImagingMemoryArena arena, int requested_size, int dirty) block.ptr = realloc(block.ptr, requested_size); } if ( ! block.ptr) { - // Can't allocate, free prevous pointer (it is still valid) + // Can't allocate, free previous pointer (it is still valid) free(arena->blocks_pool[arena->blocks_cached].ptr); arena->stats_freed_blocks += 1; return block; @@ -490,7 +490,7 @@ ImagingAllocateBlock(Imaging im) im->image[y] = im->block + i; i += im->linesize; } - + im->destroy = ImagingDestroyBlock; return im;