billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=8190ddd60557b7f43a71e890f17cbaf1b99c1ac8

commit 8190ddd60557b7f43a71e890f17cbaf1b99c1ac8
Author: Boris Faure <bill...@gmail.com>
Date:   Thu Nov 19 21:06:14 2015 +0100

    options_font: fix CID 1339833
---
 src/bin/options_font.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bin/options_font.c b/src/bin/options_font.c
index 19ade5a..1455bbf 100644
--- a/src/bin/options_font.c
+++ b/src/bin/options_font.c
@@ -433,6 +433,7 @@ options_font(Evas_Object *opbox, Evas_Object *term)
      {
         char *s;
         f = calloc(1, sizeof(Font));
+        if (!f) break;
         f->full_name = eina_stringshare_add(file);
         s = strchr(file, '.');
         if (s != NULL) *s = '\0';
@@ -474,6 +475,7 @@ options_font(Evas_Object *opbox, Evas_Object *term)
         if (!eina_hash_find(fonthash, fname))
           {
              f = calloc(1, sizeof(Font));
+             if (!f) break;
              if (_parse_font_name(fname, &f->full_name, &f->pretty_name) <0)
                {
                   free(f);

-- 


Reply via email to