[Bf-committers] Fix for crash in blender with no sound card.

bf-committers@blender.org bf-committers@blender.org
Sun, 29 Jun 2003 13:45:16 -0400 (EST)


This is a multi-part message in MIME format.

----------part3eff25acda7af
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I found that blender crashed when no sound card are found on the sytem (I
recently rebuilt my machine and haven't updated the sound drivers.

The crash happens on destruction of the SND_OpenALDevice object
(SND_OpenALDevice.cpp, line 301) because the m_context object has not been
initialized to NULL.

Patch attached (let me know if the format is okay). I just finished my first
successful build of the BF branch and want to start developing for blender. I
will attempt to fix a number of bugs to familiarixe myself with the source.

Cheers,

Jacques

----------part3eff25acda7af
Content-Type: text/plain; name="patch.txt"
Content-Transfer-Encoding: base64

SW5kZXg6IC4vc291cmNlL2dhbWVlbmdpbmUvU291bmRTeXN0ZW0vb3BlbmFsL1NORF9PcGVuQUxE
ZXZpY2UuY3BwDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09DQpSQ1MgZmlsZTogL2N2c3Jvb3QvYmYtYmxlbmRlci9ibGVu
ZGVyL3NvdXJjZS9nYW1lZW5naW5lL1NvdW5kU3lzdGVtL29wZW5hbC9TTkRfT3BlbkFMRGV2aWNl
LmNwcCx2DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuNw0KZGlmZiAtcjEuNyBTTkRfT3BlbkFMRGV2
aWNlLmNwcA0KMjE1YTIxNg0KPiAJbV9jb250ZXh0ID0gTlVMTDsNCg==

----------part3eff25acda7af--