---
 ext/jpeg/gstmxpegdec.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: gst-plugins-good0.10-0.10.26/ext/jpeg/gstmxpegdec.c
===================================================================
--- gst-plugins-good0.10-0.10.26.orig/ext/jpeg/gstmxpegdec.c
+++ gst-plugins-good0.10-0.10.26/ext/jpeg/gstmxpegdec.c
@@ -604,7 +604,7 @@
   int i, j;
   GstBitReader bitmapreader = GST_BIT_READER_INIT (dec->bitmap,
       dec->bitmap_len);
-  guchar *ref[3];
+  guchar *ref[3] = {0,};
 
   GST_DEBUG_OBJECT (dec, "MXM frame, taking slow route involving memcpy");
 
@@ -1123,6 +1123,7 @@
 done:
 
 exit:
+  gst_buffer_unref (buf);
 
   return ret;
 
