compositor: Don't leak all buffers while crossfading and not all pads are crossfading
diff --git a/gst/compositor/compositor.c b/gst/compositor/compositor.c
index caa19f8..e900580 100644
--- a/gst/compositor/compositor.c
+++ b/gst/compositor/compositor.c
@@ -1005,8 +1005,13 @@
 
     if (!gst_video_frame_map (nframe, &frame->info, cbuffer, GST_MAP_WRITE)) {
       GST_WARNING_OBJECT (self, "Could not map output buffer");
+      gst_buffer_unref (cbuffer);
       return GST_FLOW_ERROR;
     }
+
+    /* the last reference is owned by the frame and released once the frame
+     * is unmapped. We leak it if we don't unref here */
+    gst_buffer_unref (cbuffer);
   } else {
     nframe = frame;
   }