Fix X GC leak in GTK and raw (no toolkit) X ports.
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 2 Aug 2013 13:22:23 +0000 (17:22 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Fri, 2 Aug 2013 13:22:23 +0000 (17:22 +0400)
commit4b5c9326ce8f6b7856437cbbdbcccb415b38a5fc
tree797f94ac354fa4eaa7d3b8dc43590fa7824ddf0d
parent26bb8a7ceb23a748e35afbc895b54e8c1322298f
Fix X GC leak in GTK and raw (no toolkit) X ports.
* xterm.c (x_free_frame_resources): If white and black relief
GCs are allocated, always free them here.
* xfns.c (x_make_gc): Omit redundant initialization.
* widget.c (create_frame_gcs): Remove the leftover.
(EmacsFrameDestroy): Do nothing because all GCs are now freed
in x_free_frame_resources.
src/ChangeLog
src/widget.c
src/xfns.c
src/xterm.c