video: Fix leaked dither object in error cases

Coverity CID : 1256564
This commit is contained in:
Edward Hervey 2015-01-23 12:46:41 +01:00
parent 945afe6cc4
commit 5e69a0f898

View file

@ -386,6 +386,7 @@ gst_video_dither_new (GstVideoDitherMethod method, GstVideoDitherFlags flags,
dither->depth = 16;
break;
default:
g_slice_free (GstVideoDither, dither);
g_return_val_if_reached (NULL);
break;
}