devilhorns pushed a commit to branch master.

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

    Fix missing FTUNLOCK
    
    Since we locked the font_draw mutex earlier, we should unlock it
    before we return.
    
    NB: Fixes Coverity CID1039382
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/lib/evas/common/evas_font_load.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/evas/common/evas_font_load.c 
b/src/lib/evas/common/evas_font_load.c
index 64422f6..c6d6ce3 100644
--- a/src/lib/evas/common/evas_font_load.c
+++ b/src/lib/evas/common/evas_font_load.c
@@ -157,6 +157,7 @@ evas_common_font_source_memory_load(const char *name, const 
void *data, int data
    if (error)
      {
         FT_Done_Face(fs->ft.face);
+        FTUNLOCK();
         fs->ft.face = NULL;
         free(fs);
         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