devilhorns pushed a commit to branch master.

commit 10897713ea50bf4b990de7a73ca9fe2e6846bdd7
Author: Chris Michael <[email protected]>
Date:   Mon Jul 8 07:39:44 2013 +0100

    Remove dead code. In the error goto, im2 cannot exist here else we
    would not have gotten to this error handler if it did (so no point in
    checking for it and calling functions using it).
    
    NB: Fixes Coverity CID1039926
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/lib/evas/cache2/evas_cache2.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/lib/evas/cache2/evas_cache2.c 
b/src/lib/evas/cache2/evas_cache2.c
index 6d7bdfa..fef11d2 100644
--- a/src/lib/evas/cache2/evas_cache2.c
+++ b/src/lib/evas/cache2/evas_cache2.c
@@ -1102,8 +1102,6 @@ evas_cache2_image_dirty(Image_Entry *im, unsigned int x, 
unsigned int y, unsigne
    return im2;
 
 on_error:
-   if (im2)
-     _evas_cache_image_entry_delete(cache, im2);
    evas_cache2_image_close(im);
    return NULL;
 }

-- 

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

Build for Windows Store.

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

Reply via email to