diff options
| author | Glenn Morris | 2013-02-18 19:29:28 -0800 |
|---|---|---|
| committer | Glenn Morris | 2013-02-18 19:29:28 -0800 |
| commit | 872faefb07a9196a583fc8cbe146ab6a2ebc9c2b (patch) | |
| tree | 5502bf8472fb7d132c03de2240ce403b502f8995 /src | |
| parent | 8ca4f1e02e22f74dc269b01bc4a32e01dd226dae (diff) | |
| parent | 2af3b9c16e340ad034e57e949f09bbafc00bd52c (diff) | |
| download | emacs-872faefb07a9196a583fc8cbe146ab6a2ebc9c2b.tar.gz emacs-872faefb07a9196a583fc8cbe146ab6a2ebc9c2b.zip | |
Merge from emacs-24; up to 2012-12-20T16:09:05Z!dmantipov@yandex.ru
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/w32proc.c | 6 | ||||
| -rw-r--r-- | src/xdisp.c | 2 |
3 files changed, 12 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e945e221593..ff059cf1a3c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-02-19 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * w32proc.c (new_child): Avoid leaking handles if the subprocess | ||
| 4 | resources were not orderly released. | ||
| 5 | |||
| 1 | 2013-02-17 Eli Zaretskii <eliz@gnu.org> | 6 | 2013-02-17 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * xdisp.c (x_draw_vertical_border): For a window that is neither | 8 | * xdisp.c (x_draw_vertical_border): For a window that is neither |
diff --git a/src/w32proc.c b/src/w32proc.c index 3f3e97c77a0..961791a40ed 100644 --- a/src/w32proc.c +++ b/src/w32proc.c | |||
| @@ -849,6 +849,12 @@ new_child (void) | |||
| 849 | cp = &child_procs[child_proc_count++]; | 849 | cp = &child_procs[child_proc_count++]; |
| 850 | 850 | ||
| 851 | Initialize: | 851 | Initialize: |
| 852 | /* Last opportunity to avoid leaking handles before we forget them | ||
| 853 | for good. */ | ||
| 854 | if (cp->procinfo.hProcess) | ||
| 855 | CloseHandle (cp->procinfo.hProcess); | ||
| 856 | if (cp->procinfo.hThread) | ||
| 857 | CloseHandle (cp->procinfo.hThread); | ||
| 852 | memset (cp, 0, sizeof (*cp)); | 858 | memset (cp, 0, sizeof (*cp)); |
| 853 | cp->fd = -1; | 859 | cp->fd = -1; |
| 854 | cp->pid = -1; | 860 | cp->pid = -1; |
diff --git a/src/xdisp.c b/src/xdisp.c index 08958f44575..f32b88f3027 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -28244,7 +28244,7 @@ x_draw_vertical_border (struct window *w) | |||
| 28244 | if (FRAME_HAS_VERTICAL_SCROLL_BARS (XFRAME (w->frame))) | 28244 | if (FRAME_HAS_VERTICAL_SCROLL_BARS (XFRAME (w->frame))) |
| 28245 | return; | 28245 | return; |
| 28246 | 28246 | ||
| 28247 | /* Note: It is necessary to redraw bot the left and the right | 28247 | /* Note: It is necessary to redraw both the left and the right |
| 28248 | borders, for when only this single window W is being | 28248 | borders, for when only this single window W is being |
| 28249 | redisplayed. */ | 28249 | redisplayed. */ |
| 28250 | if (!WINDOW_RIGHTMOST_P (w) | 28250 | if (!WINDOW_RIGHTMOST_P (w) |