fix caps leak in both cases
fix caps leak in both cases

Original commit message from CVS:
fix caps leak in both cases

surround-io/gstreamer,Lachann/gstreamer,mparis/gstreamer,surround-io/gstreamer,justinjoy/gstreamer,Distrotech/gstreamer,ylatuya/gstreamer,justinjoy/gstreamer,krieger-od/gstreamer,lovebug356/gstreamer,lubosz/gstreamer,mrchapp/gstreamer,ylatuya/gstreamer,jpxiong/gstreamer,ylatuya/gstreamer,shelsonjava/gstreamer,jpxiong/gstreamer,Lachann/gstreamer,jpakkane/gstreamer,magcius/gstreamer,krieger-od/gstreamer,mparis/gstreamer,jpakkane/gstreamer,centricular/gstreamer,magcius/gstreamer,lovebug356/gstreamer,StreamUtils/gstreamer,krieger-od/gstreamer,jpakkane/gstreamer,lubosz/gstreamer,mrchapp/gstreamer,shelsonjava/gstreamer,lovebug356/gstreamer,krichter722/gstreamer,ensonic/gstreamer,centricular/gstreamer,jpxiong/gstreamer,StreamUtils/gstreamer,lubosz/gstreamer,cfoch/gstreamer,shelsonjava/gstreamer,mparis/gstreamer,surround-io/gstreamer,ensonic/gstreamer,ahmedammar/platform_external_gst_gstreamer,ylatuya/gstreamer,jpakkane/gstreamer,cablelabs/gstreamer,centricular/gstreamer,ylatuya/gstreamer,ahmedammar/platform_external_gst_gstreamer,justinjoy/gstreamer,magcius/gstreamer,Lachann/gstreamer,ahmedammar/platform_external_gst_gstreamer,Lachann/gstreamer,mrchapp/gstreamer,drothlis/gstreamer,cfoch/gstreamer,ensonic/gstreamer,krichter722/gstreamer,cablelabs/gstreamer,collects/gstreamer,magcius/gstreamer,ahmedammar/platform_external_gst_gstreamer,lubosz/gstreamer,cfoch/gstreamer,collects/gstreamer,cfoch/gstreamer,centricular/gstreamer,krieger-od/gstreamer,lovebug356/gstreamer,lubosz/gstreamer,jpxiong/gstreamer,mparis/gstreamer,magcius/gstreamer,ensonic/gstreamer,collects/gstreamer,cablelabs/gstreamer,Distrotech/gstreamer,drothlis/gstreamer,StreamUtils/gstreamer,cablelabs/gstreamer,collects/gstreamer,drothlis/gstreamer,ahmedammar/platform_external_gst_gstreamer,mrchapp/gstreamer,Distrotech/gstreamer,cablelabs/gstreamer,surround-io/gstreamer,surround-io/gstreamer,krieger-od/gstreamer,collects/gstreamer,StreamUtils/gstreamer,jpakkane/gstreamer,krichter722/gstreamer,jpxiong/gstreamer,StreamUtils/gstreamer,krichter722/gstreamer,drothlis/gstreamer,cfoch/gstreamer,lovebug356/gstreamer,Lachann/gstreamer,drothlis/gstreamer,shelsonjava/gstreamer,shelsonjava/gstreamer,krichter722/gstreamer,centricular/gstreamer,mparis/gstreamer,justinjoy/gstreamer,justinjoy/gstreamer,Distrotech/gstreamer,ensonic/gstreamer,mrchapp/gstreamer,Distrotech/gstreamer