diff options
author | Alexander Gramiak <agrambot@gmail.com> | 2019-04-06 23:02:24 -0600 |
---|---|---|
committer | Alexander Gramiak <agrambot@gmail.com> | 2019-04-07 12:49:02 -0600 |
commit | a35e06bbe27c5907f56c5aeb48182d7be00d1dec (patch) | |
tree | 49206a9771c4b727e8f75449aff8c2f0077f6d4d /src/frame.h | |
parent | 404a5470cf1b1ae5bd464aaf8fe909b86faa2e61 (diff) | |
download | emacs-a35e06bbe27c5907f56c5aeb48182d7be00d1dec.tar.gz |
Plug memory leak in GTK x-display-monitor-attributes-list
* src/frame.c (free_monitors) [USE_GTK]: Define in the GTK case as
well.
* src/xfns.c (x-display-monitor-attributes-list) [USE_GTK]: Plug
memory leak.
* src/frame.h (MonitorInfo): Declare name as pointing to const char.
Diffstat (limited to 'src/frame.h')
-rw-r--r-- | src/frame.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/frame.h b/src/frame.h index ed62e7ace0f..b1eedf36a38 100644 --- a/src/frame.h +++ b/src/frame.h @@ -1648,7 +1648,7 @@ flush_frame (struct frame *f) struct MonitorInfo { XRectangle geom, work; int mm_width, mm_height; - char *name; + const char *name; }; extern void free_monitors (struct MonitorInfo *monitors, int n_monitors); |