* sound.c (sound_cleanup): Don't call device close routine if pointer is null.
authorKen Raeburn <raeburn@raeburn.org>
Mon, 7 Feb 2000 00:45:16 +0000 (00:45 +0000)
committerKen Raeburn <raeburn@raeburn.org>
Mon, 7 Feb 2000 00:45:16 +0000 (00:45 +0000)
src/ChangeLog
src/sound.c

index 0f16963..c5931e7 100644 (file)
@@ -1,3 +1,8 @@
+2000-02-06  Ken Raeburn  <raeburn@gnu.org>
+
+       * sound.c (sound_cleanup): Don't call device close routine if the
+       function pointer is null.
+
 2000-02-06  Andrew Innes  <andrewi@gnu.org>
 
        * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
 
        * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
 
-2000-02-03  Ken Raeburn  <raeburn@raeburn.org>
+2000-02-03  Ken Raeburn  <raeburn@gnu.org>
 
        * search.c (compile_pattern): If a cache entry has a nil regexp,
        fill in that entry instead of clobbering a previously cached
        string regexp.
 
-2000-02-02  Ken Raeburn  <raeburn@raeburn.org>
+2000-02-02  Ken Raeburn  <raeburn@gnu.org>
 
        * puresize.h (BASE_PURESIZE): Increase to 610000.
 
 
        * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer.
 
-1999-10-24  Ken Raeburn  <raeburn@raeburn.org>
+1999-10-24  Ken Raeburn  <raeburn@gnu.org>
 
        * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including
        lisp.h.
index 0f0706e..52fe1c1 100644 (file)
@@ -347,7 +347,8 @@ sound_cleanup (arg)
 {
   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);
     }