aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn2000-02-07 00:45:16 +0000
committerKen Raeburn2000-02-07 00:45:16 +0000
commit66e4690ffa2438bc74a082d614206a877f4a97e2 (patch)
treee10e7f69deabe791df501306973cf1c1e0a0dc06 /src
parenta75dfea0a58a9023386252bd94cb68481261bac5 (diff)
downloademacs-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/ChangeLog11
-rw-r--r--src/sound.c3
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 @@
12000-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
12000-02-06 Andrew Innes <andrewi@gnu.org> 62000-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
542000-02-03 Ken Raeburn <raeburn@raeburn.org> 592000-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
602000-02-02 Ken Raeburn <raeburn@raeburn.org> 652000-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
20541999-10-24 Ken Raeburn <raeburn@raeburn.org> 20591999-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 }