diff options
| author | Joakim Verona | 2013-02-20 00:04:24 +0100 |
|---|---|---|
| committer | Joakim Verona | 2013-02-20 00:04:24 +0100 |
| commit | 10fc3c3866ede374437a72f2e8c1cd7c0f51a8fa (patch) | |
| tree | 9f089e0c12e94575e0c679f4b4deb47c807ac26d /src | |
| parent | b6f8e0e0e844020efd614d3655b67a646bcffb9a (diff) | |
| parent | 81ed22e4cad625e297314bc609d146e7e62695db (diff) | |
| download | emacs-10fc3c3866ede374437a72f2e8c1cd7c0f51a8fa.tar.gz emacs-10fc3c3866ede374437a72f2e8c1cd7c0f51a8fa.zip | |
auto upstream
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/ChangeLog.10 | 2 | ||||
| -rw-r--r-- | src/lisp.h | 2 | ||||
| -rw-r--r-- | src/marker.c | 2 | ||||
| -rw-r--r-- | src/w32proc.c | 6 | ||||
| -rw-r--r-- | src/xdisp.c | 2 |
6 files changed, 15 insertions, 4 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/ChangeLog.10 b/src/ChangeLog.10 index c878c48a4f4..508a2a9dd4c 100644 --- a/src/ChangeLog.10 +++ b/src/ChangeLog.10 | |||
| @@ -19171,7 +19171,7 @@ | |||
| 19171 | * coding.c (code_convert_region_unwind): | 19171 | * coding.c (code_convert_region_unwind): |
| 19172 | Set Vlast_coding_system_used to the argument. | 19172 | Set Vlast_coding_system_used to the argument. |
| 19173 | (code_convert_region): If post-read-conversion function changed | 19173 | (code_convert_region): If post-read-conversion function changed |
| 19174 | the value of last-coding-sytem, keep the new value in | 19174 | the value of last-coding-system, keep the new value in |
| 19175 | coding->symbol so that it won't be overridden. | 19175 | coding->symbol so that it won't be overridden. |
| 19176 | (run_pre_post_conversion_on_str): Likewise. | 19176 | (run_pre_post_conversion_on_str): Likewise. |
| 19177 | (coding_system_accept_latin_extra_p): New function. | 19177 | (coding_system_accept_latin_extra_p): New function. |
diff --git a/src/lisp.h b/src/lisp.h index c023d5b4892..e7a86892908 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -3053,7 +3053,7 @@ extern Lisp_Object Qautomatic_gc; | |||
| 3053 | extern Lisp_Object Qchar_table_extra_slots; | 3053 | extern Lisp_Object Qchar_table_extra_slots; |
| 3054 | extern struct Lisp_Vector *allocate_vector (EMACS_INT); | 3054 | extern struct Lisp_Vector *allocate_vector (EMACS_INT); |
| 3055 | 3055 | ||
| 3056 | /* Make an unitialized vector for SIZE objects. NOTE: you must | 3056 | /* Make an uninitialized vector for SIZE objects. NOTE: you must |
| 3057 | be sure that GC cannot happen until the vector is completely | 3057 | be sure that GC cannot happen until the vector is completely |
| 3058 | initialized. E.g. the following code is likely to crash: | 3058 | initialized. E.g. the following code is likely to crash: |
| 3059 | 3059 | ||
diff --git a/src/marker.c b/src/marker.c index 0d992c0abfa..63027d3be5e 100644 --- a/src/marker.c +++ b/src/marker.c | |||
| @@ -500,7 +500,7 @@ set_marker_internal (Lisp_Object marker, Lisp_Object position, | |||
| 500 | register ptrdiff_t charpos, bytepos; | 500 | register ptrdiff_t charpos, bytepos; |
| 501 | 501 | ||
| 502 | /* Do not use CHECK_NUMBER_COERCE_MARKER because we | 502 | /* Do not use CHECK_NUMBER_COERCE_MARKER because we |
| 503 | don't want to call buf_charpos_to_bytepos if POSTION | 503 | don't want to call buf_charpos_to_bytepos if POSITION |
| 504 | is a marker and so we know the bytepos already. */ | 504 | is a marker and so we know the bytepos already. */ |
| 505 | if (INTEGERP (position)) | 505 | if (INTEGERP (position)) |
| 506 | charpos = XINT (position), bytepos = -1; | 506 | charpos = XINT (position), bytepos = -1; |
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 68be426f807..9207355bc09 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -28496,7 +28496,7 @@ x_draw_vertical_border (struct window *w) | |||
| 28496 | if (FRAME_HAS_VERTICAL_SCROLL_BARS (XFRAME (w->frame))) | 28496 | if (FRAME_HAS_VERTICAL_SCROLL_BARS (XFRAME (w->frame))) |
| 28497 | return; | 28497 | return; |
| 28498 | 28498 | ||
| 28499 | /* Note: It is necessary to redraw bot the left and the right | 28499 | /* Note: It is necessary to redraw both the left and the right |
| 28500 | borders, for when only this single window W is being | 28500 | borders, for when only this single window W is being |
| 28501 | redisplayed. */ | 28501 | redisplayed. */ |
| 28502 | if (!WINDOW_RIGHTMOST_P (w) | 28502 | if (!WINDOW_RIGHTMOST_P (w) |