summaryrefslogtreecommitdiff
path: root/src/xfns.c
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2013-08-02 17:22:23 +0400
committerDmitry Antipov <dmantipov@yandex.ru>2013-08-02 17:22:23 +0400
commit4b5c9326ce8f6b7856437cbbdbcccb415b38a5fc (patch)
tree797f94ac354fa4eaa7d3b8dc43590fa7824ddf0d /src/xfns.c
parent26bb8a7ceb23a748e35afbc895b54e8c1322298f (diff)
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.
Diffstat (limited to 'src/xfns.c')
-rw-r--r--src/xfns.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 642bdabb41..afae67d632 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -2788,10 +2788,6 @@ x_make_gc (struct frame *f)
| GCFillStyle | GCLineWidth),
&gc_values);
- /* Reliefs. */
- f->output_data.x->white_relief.gc = 0;
- f->output_data.x->black_relief.gc = 0;
-
/* Create the gray border tile used when the pointer is not in
the frame. Since this depends on the frame's pixel values,
this must be done on a per-frame basis. */