diff options
| author | Ken Raeburn | 2000-02-07 00:45:16 +0000 |
|---|---|---|
| committer | Ken Raeburn | 2000-02-07 00:45:16 +0000 |
| commit | 66e4690ffa2438bc74a082d614206a877f4a97e2 (patch) | |
| tree | e10e7f69deabe791df501306973cf1c1e0a0dc06 /src | |
| parent | a75dfea0a58a9023386252bd94cb68481261bac5 (diff) | |
| download | emacs-66e4690ffa2438bc74a082d614206a877f4a97e2.tar.gz emacs-66e4690ffa2438bc74a082d614206a877f4a97e2.zip | |
* sound.c (sound_cleanup): Don't call device close routine if pointer is null.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 11 | ||||
| -rw-r--r-- | src/sound.c | 3 |
2 files changed, 10 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 0f1696327a7..c5931e790c0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2000-02-06 Ken Raeburn <raeburn@gnu.org> | ||
| 2 | |||
| 3 | * sound.c (sound_cleanup): Don't call device close routine if the | ||
| 4 | function pointer is null. | ||
| 5 | |||
| 1 | 2000-02-06 Andrew Innes <andrewi@gnu.org> | 6 | 2000-02-06 Andrew Innes <andrewi@gnu.org> |
| 2 | 7 | ||
| 3 | * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM, | 8 | * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM, |
| @@ -51,13 +56,13 @@ | |||
| 51 | 56 | ||
| 52 | * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000. | 57 | * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000. |
| 53 | 58 | ||
| 54 | 2000-02-03 Ken Raeburn <raeburn@raeburn.org> | 59 | 2000-02-03 Ken Raeburn <raeburn@gnu.org> |
| 55 | 60 | ||
| 56 | * search.c (compile_pattern): If a cache entry has a nil regexp, | 61 | * search.c (compile_pattern): If a cache entry has a nil regexp, |
| 57 | fill in that entry instead of clobbering a previously cached | 62 | fill in that entry instead of clobbering a previously cached |
| 58 | string regexp. | 63 | string regexp. |
| 59 | 64 | ||
| 60 | 2000-02-02 Ken Raeburn <raeburn@raeburn.org> | 65 | 2000-02-02 Ken Raeburn <raeburn@gnu.org> |
| 61 | 66 | ||
| 62 | * puresize.h (BASE_PURESIZE): Increase to 610000. | 67 | * puresize.h (BASE_PURESIZE): Increase to 610000. |
| 63 | 68 | ||
| @@ -2051,7 +2056,7 @@ | |||
| 2051 | 2056 | ||
| 2052 | * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer. | 2057 | * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer. |
| 2053 | 2058 | ||
| 2054 | 1999-10-24 Ken Raeburn <raeburn@raeburn.org> | 2059 | 1999-10-24 Ken Raeburn <raeburn@gnu.org> |
| 2055 | 2060 | ||
| 2056 | * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including | 2061 | * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including |
| 2057 | lisp.h. | 2062 | lisp.h. |
diff --git a/src/sound.c b/src/sound.c index 0f0706e5db3..52fe1c18bcd 100644 --- a/src/sound.c +++ b/src/sound.c | |||
| @@ -347,7 +347,8 @@ sound_cleanup (arg) | |||
| 347 | { | 347 | { |
| 348 | if (current_sound_device) | 348 | if (current_sound_device) |
| 349 | { | 349 | { |
| 350 | current_sound_device->close (current_sound_device); | 350 | if (current_sound_device->close) |
| 351 | current_sound_device->close (current_sound_device); | ||
| 351 | if (current_sound->fd > 0) | 352 | if (current_sound->fd > 0) |
| 352 | emacs_close (current_sound->fd); | 353 | emacs_close (current_sound->fd); |
| 353 | } | 354 | } |