summaryrefslogtreecommitdiff
path: root/ext/kate/gstkateenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/kate/gstkateenc.c')
-rw-r--r--ext/kate/gstkateenc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/ext/kate/gstkateenc.c b/ext/kate/gstkateenc.c
index 595868f3e..a48ea1e2c 100644
--- a/ext/kate/gstkateenc.c
+++ b/ext/kate/gstkateenc.c
@@ -791,12 +791,9 @@ gst_kate_enc_chain_spu (GstKateEnc * ke, GstBuffer * buf)
kbitmap = (kate_bitmap *) g_malloc (sizeof (kate_bitmap));
kpalette = (kate_palette *) g_malloc (sizeof (kate_palette));
if (!kregion || !kpalette || !kbitmap) {
- if (kregion)
- g_free (kregion);
- if (kbitmap)
- g_free (kbitmap);
- if (kpalette)
- g_free (kpalette);
+ g_free (kregion);
+ g_free (kbitmap);
+ g_free (kpalette);
GST_ELEMENT_ERROR (ke, STREAM, ENCODE, (NULL), ("Out of memory"));
return GST_FLOW_ERROR;
}