diff src/sound.c @ 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 e17a1c6d3d69
children acaa36b47f50
line wrap: on
line diff
--- 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);
     }