summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis.bg@samsung.com>2015-03-09 16:14:34 +0000
committerLuis de Bethencourt <luis.bg@samsung.com>2015-03-09 16:17:45 +0000
commit5cd293fe76e63bc502bf89b4c0ead47257f53d8d (patch)
treec57b69baa79fe50f2fed26292de3a00965ea5a9c /gst
parente87113781ad53065f87347ad525631a57d992c07 (diff)
rtph263pay: fix leak
CID 1212156
Diffstat (limited to 'gst')
-rw-r--r--gst/rtp/gstrtph263pay.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gst/rtp/gstrtph263pay.c b/gst/rtp/gstrtph263pay.c
index 285ca8cea..c664c5b9b 100644
--- a/gst/rtp/gstrtph263pay.c
+++ b/gst/rtp/gstrtph263pay.c
@@ -1384,7 +1384,7 @@ gst_rtp_h263_pay_mode_B_fragment (GstRtpH263Pay * rtph263pay,
/*---------- MODE B MODE FRAGMENTATION ----------*/
- GstRtpH263PayMB *mac;
+ GstRtpH263PayMB *mac = NULL;
guint max_payload_size;
GstRtpH263PayBoundry boundry;
guint mb;
@@ -1537,7 +1537,7 @@ gst_rtp_h263_pay_mode_B_fragment (GstRtpH263Pay * rtph263pay,
if (gst_rtp_h263_pay_B_fragment_push (rtph263pay, context, gob, first,
mb - 1, &boundry)) {
GST_ERROR ("Oooops, there was an error sending");
- return FALSE;
+ goto decode_error;
}
payload_len = 0;
@@ -1555,15 +1555,17 @@ gst_rtp_h263_pay_mode_B_fragment (GstRtpH263Pay * rtph263pay,
if (gst_rtp_h263_pay_B_fragment_push (rtph263pay, context, gob, first,
mb - 1, &boundry)) {
GST_ERROR ("Oooops, there was an error sending!");
- return FALSE;
+ goto decode_error;
}
}
/*---------- END OF MODE B FRAGMENTATION ----------*/
+ gst_rtp_h263_pay_mb_destroy (mac);
return TRUE;
decode_error:
+ gst_rtp_h263_pay_mb_destroy (mac);
return FALSE;
}