<p><br>
On Mar 20, 2011 7:15 PM, "Colin Guthrie" <<a href="mailto:gmane@colin.guthr.ie">gmane@colin.guthr.ie</a>> wrote:<br>
><br>
> 'Twas brillig, and Daniel Mack at 20/03/11 17:39 did gyre and gimble:<br>
> > From: Daniel Mack <<a href="mailto:daniel@caiaq.de">daniel@caiaq.de</a>><br>
> ><br>
> > This would have crashed when unloading the module.<br>
> > ---<br>
> > src/modules/coreaudio/module-coreaudio-detect.c | 5 +----<br>
> > 1 files changed, 1 insertions(+), 4 deletions(-)<br>
> ><br>
> > diff --git a/src/modules/coreaudio/module-coreaudio-detect.c b/src/modules/coreaudio/module-coreaudio-detect.c<br>
> > index 1d26b84..fda1f17 100644<br>
> > --- a/src/modules/coreaudio/module-coreaudio-detect.c<br>
> > +++ b/src/modules/coreaudio/module-coreaudio-detect.c<br>
> > @@ -231,13 +231,10 @@ fail:<br>
> > }<br>
> ><br>
> > void pa__done(pa_module *m) {<br>
> > - struct userdata *u;<br>
> > + struct userdata *u = m->userdata;<br>
> > struct ca_device *dev = u->devices;<br>
> > AudioObjectPropertyAddress property_address;<br>
> ><br>
> > - pa_assert(m);<br>
> > - pa_assert_se(u = m->userdata);<br>
> > -<br>
> > property_address.mSelector = kAudioHardwarePropertyDevices;<br>
> > property_address.mScope = kAudioObjectPropertyScopeGlobal;<br>
> > property_address.mElement = kAudioObjectPropertyElementMaster;<br>
><br>
> From what I can see, most modules are still calling pa_assert(m) so it's<br>
> probably better to keep the assert in there and just move the dev =<br>
> u->devices line lower.<br>
><br>
> Other than that the other patches are all fine.</p>
<p>Ok, can you add it back and amend the patch? I think that would be easier than resending :-)</p>
<p>Thanks,<br>
Daniel<br>
</p>