textpath: do not process line if failed to allocate segment
authorThiep Ha <thiepha@gmail.com>
Tue, 5 Sep 2017 03:02:01 +0000 (12:02 +0900)
committerThiep Ha <thiepha@gmail.com>
Tue, 5 Sep 2017 03:02:01 +0000 (12:02 +0900)
src/lib/elementary/efl_ui_textpath.c

index ec0a6a5..2931995 100644 (file)
@@ -380,6 +380,7 @@ _path_data_get(Eo *obj, Efl_Ui_Textpath_Data *pd, Eina_Bool set_min)
                        ERR("Failed to allocate segment");
                        px0 = px1;
                        py0 = py1;
+                       continue;
                     }
                   seg->type = EFL_GFX_PATH_COMMAND_TYPE_LINE_TO;
                   seg->line.start.x = px0;