@@ -241,18 +241,14 @@ void MCStack::effectrect(const MCRectangle& p_area, Boolean& r_abort)
241241 if (t_effects -> sound != NULL )
242242 {
243243 MCAudioClip *acptr;
244- MCAutoStringRef t_sound;
245- /* UNCHECKED */ MCStringCreateWithCString (t_effects->sound , &t_sound);
246- if ((acptr = (MCAudioClip *)getobjname (CT_AUDIO_CLIP, *t_sound)) == NULL )
244+ if ((acptr = (MCAudioClip *)getobjname (CT_AUDIO_CLIP, t_effects->sound )) == NULL )
247245 {
248246 IO_handle stream;
249- MCAutoStringRef t_sound;
250- /* UNCHECKED */ MCStringCreateWithCString (t_effects->sound , &t_sound);
251- if ((stream = MCS_open (*t_sound, kMCSOpenFileModeRead , True, False, 0 )) != NULL )
247+ if ((stream = MCS_open (t_effects->sound , kMCSOpenFileModeRead , True, False, 0 )) != NULL )
252248 {
253249 acptr = new MCAudioClip;
254250 acptr->setdisposable ();
255- if (!acptr->import (*t_sound , stream))
251+ if (!acptr->import (t_effects-> sound , stream))
256252 {
257253 delete acptr;
258254 acptr = NULL ;
@@ -281,12 +277,12 @@ void MCStack::effectrect(const MCRectangle& p_area, Boolean& r_abort)
281277 if (t_effects -> type != VE_PLAIN)
282278 {
283279#ifdef _MAC_DESKTOP
284- if (t_effects -> type == VE_UNDEFINED && MCCoreImageEffectBegin (t_effects -> name, t_dst_drawable, t_start_image, t_end_image, t_dst_effect_area, t_effects -> arguments))
280+ if (t_effects -> type == VE_UNDEFINED && MCCoreImageEffectBegin (MCStringGetCString ( t_effects -> name) , t_dst_drawable, t_start_image, t_end_image, t_dst_effect_area, t_effects -> arguments))
285281 t_effects -> type = VE_CIEFFECT;
286282 else
287283#endif
288284#ifdef FEATURE_QUICKTIME
289- if (MCQTEffectBegin (t_effects -> type, t_effects -> name, t_effects -> direction, t_dst_drawable, t_start_image, t_end_image, t_dst_effect_area))
285+ if (MCQTEffectBegin (t_effects -> type, MCStringGetCString ( t_effects -> name) , t_effects -> direction, t_dst_drawable, t_start_image, t_end_image, t_dst_effect_area))
290286 t_effects -> type = VE_QTEFFECT;
291287#endif
292288 }
0 commit comments