Check for valid 'send' before trying to call

emotion_gstreamer_buffer_free (which will dereference it).

NB: Fixes Coverity CID1039397

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

View File

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