mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
video: Fix leaked dither object in error cases
Coverity CID : 1256564
This commit is contained in:
parent
945afe6cc4
commit
5e69a0f898
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue