]> git.eshelyaron.com Git - emacs.git/commit
Fix NS toolbar image release crash (bug#43973)
authorAlan Third <alan@idiocy.org>
Sat, 2 Jan 2021 18:19:39 +0000 (18:19 +0000)
committerAlan Third <alan@idiocy.org>
Sat, 2 Jan 2021 22:29:54 +0000 (22:29 +0000)
commitd84cf78df8ea5d99cc5b38c49f3b7aed081170f5
tree70eec34e20ca9fbf30374e93cdf102045616c10e
parentdde3269633550debb8b13cdc77136fe638c8e1fc
Fix NS toolbar image release crash (bug#43973)

The toolbar fails to make a proper copy of EmacsImage objects, so
releasing the copy incorrectly released instance variables from the
original objects.

* src/nsimage.m ([EmacsImage copyWithZone:]): New function to enable
correct copying of EmacsImage.
src/nsimage.m