* nsfns.m: Declare image_cache_refcount if GLYPH_DEBUG.
authorJan Djärv <jan.h.d@swipnet.se>
Sat, 5 Nov 2011 12:25:01 +0000 (13:25 +0100)
committerJan Djärv <jan.h.d@swipnet.se>
Sat, 5 Nov 2011 12:25:01 +0000 (13:25 +0100)
commita97f8f3f16c6370acb0076011588822e572fa589
treef5c322496afd1a62b4f8b37090f35bf403b3dac6
parentc9e7db78eff4bd8cf9e6abe3d33eb83c7d6cbf00
* nsfns.m: Declare image_cache_refcount if GLYPH_DEBUG.
(unwind_create_frame): New function.
(Fx_create_frame): Restructure code to be more similar to the one in
xfns.c.  Call record_unwind_protect with unwind_create_frame (Bug#9943).
Initialize image_cache_refcount if GLYPH_DEBUG (Bug#9943).
Move terminal->reference_count++ just before making the frame official
(Bug#9943).

* nsterm.m (x_free_frame_resources): New function.
(x_destroy_window): Move code to x_free_frame_resources.
src/ChangeLog
src/nsfns.m
src/nsterm.m