hi,

attached you'll find what looks like a silly patch but for some reason g_try_malloc0 doesn't work as promised. Please apply and backport (with the the g_free hunk) to 0.8 to fix bugzilla #18616.

thanks,
riccardo
diff --git a/swfdec-gtk/swfdec_playback_pulse.c b/swfdec-gtk/swfdec_playback_pulse.c
index e884005..47c9af4 100644
--- a/swfdec-gtk/swfdec_playback_pulse.c
+++ b/swfdec-gtk/swfdec_playback_pulse.c
@@ -74,11 +74,12 @@ stream_write_callback (pa_stream *pa,
   /* Adjust to our rounded-down number */
   bytes = samples * SAMPLESIZE * CHANNELS;
 
-  frag = g_try_malloc0 (bytes);
+  frag = g_try_malloc (bytes);
   if (frag == NULL) {
     g_printerr ("Failed to allocate fragment of size %d\n", (int)bytes);
     return;
   }
+  memset(frag, 0, bytes);
 
   /* Set up our fragment and render swfdec's audio into it. The swfdec audio
    * decoder renders deltas from the existing data in the fragment.
_______________________________________________
Swfdec mailing list
Swfdec@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/swfdec

Reply via email to