changeset 27635:8344762c0da2

* sound.c (sound_cleanup): Don't call device close routine if pointer is null.
author Ken Raeburn <raeburn@raeburn.org>
date Mon, 07 Feb 2000 00:45:16 +0000
parents 6c9ee29e8955
children 161ec77aa308
files src/ChangeLog src/sound.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
Binary file src/ChangeLog has changed
--- a/src/sound.c	Sun Feb 06 23:37:51 2000 +0000
+++ b/src/sound.c	Mon Feb 07 00:45:16 2000 +0000
@@ -347,7 +347,8 @@
 {
   if (current_sound_device)
     {
-      current_sound_device->close (current_sound_device);
+      if (current_sound_device->close)
+	current_sound_device->close (current_sound_device);
       if (current_sound->fd > 0)
 	emacs_close (current_sound->fd);
     }