summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-12-22 12:53:51 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-12-22 15:36:31 +0100
commit30c57531723be39778efcf5ceb151cceb79c4e2d (patch)
tree660b3875bffd5b034fe9cbd7d5e2a4ff0e3ee8a8
parente1bcd61bdf964b9e38923bdb590b8f00bfc31876 (diff)
eolian: deferred parsing of type deps
-rw-r--r--src/lib/eolian/eo_parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eolian/eo_parser.c b/src/lib/eolian/eo_parser.c
index 556ac70785..f9f3c51e67 100644
--- a/src/lib/eolian/eo_parser.c
+++ b/src/lib/eolian/eo_parser.c
@@ -824,12 +824,12 @@ parse_type_void(Eo_Lexer *ls)
824 { 824 {
825 const char *fname = eina_hash_find(ls->state->filenames_eo, fnm); 825 const char *fname = eina_hash_find(ls->state->filenames_eo, fnm);
826 eina_stringshare_del(bnm); 826 eina_stringshare_del(bnm);
827 free(fnm);
828 if (fname) 827 if (fname)
829 { 828 {
830 _parse_dep(ls, fname, nm); 829 eina_hash_set(ls->state->defer, fnm, fname);
831 def->type = EOLIAN_TYPE_CLASS; 830 def->type = EOLIAN_TYPE_CLASS;
832 } 831 }
832 free(fnm);
833 } 833 }
834 else 834 else
835 { 835 {