video: Fix leaked dither object in error cases
Coverity CID : 1256564
This commit is contained in:
parent
945afe6cc4
commit
5e69a0f898
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user