Check for valid 'send' before trying to call

emotion_gstreamer_buffer_free (which will derefence it).

NB: Fixes Coverity CID1039396

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-07-08 14:33:15 +01:00
parent 6229a871de
commit c58347b0a5
1 changed files with 1 additions and 1 deletions

View File

@ -604,7 +604,7 @@ evas_video_sink_samsung_main_render(void *data)
send->ev->last_buffer = buffer;
exit_point:
emotion_gstreamer_buffer_free(send);
if (send) emotion_gstreamer_buffer_free(send);
exit_stream:
if (priv)