toc: fix memory leaks in unit test
toc: fix memory leaks in unit test

mparis/gstreamer,mparis/gstreamer,centricular/gstreamer,jpakkane/gstreamer,centricular/gstreamer,cablelabs/gstreamer,StreamUtils/gstreamer,Lachann/gstreamer,shelsonjava/gstreamer,Lachann/gstreamer,krieger-od/gstreamer,centricular/gstreamer,jpakkane/gstreamer,justinjoy/gstreamer,surround-io/gstreamer,krichter722/gstreamer,jpxiong/gstreamer,jpxiong/gstreamer,centricular/gstreamer,surround-io/gstreamer,lovebug356/gstreamer,cfoch/gstreamer,collects/gstreamer,justinjoy/gstreamer,ensonic/gstreamer,collects/gstreamer,cfoch/gstreamer,lubosz/gstreamer,shelsonjava/gstreamer,cfoch/gstreamer,krichter722/gstreamer,StreamUtils/gstreamer,jpxiong/gstreamer,StreamUtils/gstreamer,centricular/gstreamer,cablelabs/gstreamer,krieger-od/gstreamer,ensonic/gstreamer,jpakkane/gstreamer,surround-io/gstreamer,justinjoy/gstreamer,jpxiong/gstreamer,shelsonjava/gstreamer,mparis/gstreamer,lubosz/gstreamer,ensonic/gstreamer,cfoch/gstreamer,lovebug356/gstreamer,surround-io/gstreamer,lovebug356/gstreamer,shelsonjava/gstreamer,ensonic/gstreamer,jpxiong/gstreamer,Lachann/gstreamer,lovebug356/gstreamer,krichter722/gstreamer,collects/gstreamer,shelsonjava/gstreamer,ensonic/gstreamer,Lachann/gstreamer,lubosz/gstreamer,krichter722/gstreamer,StreamUtils/gstreamer,cablelabs/gstreamer,justinjoy/gstreamer,lubosz/gstreamer,mparis/gstreamer,krieger-od/gstreamer,jpakkane/gstreamer,krieger-od/gstreamer,Lachann/gstreamer,justinjoy/gstreamer,collects/gstreamer,lubosz/gstreamer,cablelabs/gstreamer,cablelabs/gstreamer,mparis/gstreamer,lovebug356/gstreamer,krieger-od/gstreamer,jpakkane/gstreamer,StreamUtils/gstreamer,collects/gstreamer,cfoch/gstreamer,surround-io/gstreamer,krichter722/gstreamer