devilhorns pushed a commit to branch master.

commit c58347b0a52f80a586102eda3f005e44609823d0
Author: Chris Michael <[email protected]>
Date:   Mon Jul 8 14:33:15 2013 +0100

    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 <[email protected]>
---
 src/modules/emotion/gstreamer/emotion_sink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/emotion/gstreamer/emotion_sink.c 
b/src/modules/emotion/gstreamer/emotion_sink.c
index c238868..b88c83f 100644
--- a/src/modules/emotion/gstreamer/emotion_sink.c
+++ b/src/modules/emotion/gstreamer/emotion_sink.c
@@ -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)

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to