Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
27634:6c9ee29e8955 | 27635:8344762c0da2 |
---|---|
345 sound_cleanup (arg) | 345 sound_cleanup (arg) |
346 Lisp_Object arg; | 346 Lisp_Object 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 } |
354 } | 355 } |
355 | 356 |