hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=ce373ec81fc8254954aa5f01f8059d0b1211c8ab

commit ce373ec81fc8254954aa5f01f8059d0b1211c8ab
Author: ChunEon Park <her...@hermet.pe.kr>
Date:   Wed Aug 6 16:56:53 2014 +0900

    indent: code refactoring.
    
    apply simpler code.
---
 src/bin/indent.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/bin/indent.c b/src/bin/indent.c
index b8d92ac..aa739f9 100644
--- a/src/bin/indent.c
+++ b/src/bin/indent.c
@@ -86,9 +86,10 @@ indent_insert_br_case(indent_data *id, Evas_Object *entry)
              i++;
           }
      }
+   free(utf8);
 
    int space = indent_space_get(id, entry);
-   if (space <= 0) goto end;
+   if (space <= 0) return;
 
    //Alloc Empty spaces
    char *p = alloca(space + 1);
@@ -99,9 +100,6 @@ indent_insert_br_case(indent_data *id, Evas_Object *entry)
    redoundo_text_push(rd, p, elm_entry_cursor_pos_get(entry), 0, EINA_TRUE);
 
    elm_entry_entry_insert(entry, p);
-
-end:
-   free(utf8);
 }
 
 static void

-- 


Reply via email to