efl/graphics: fix incorrect memory increase. 29/43229/1
authorChunEon Park <hermet@hermet.pe.kr>
Tue, 27 Jan 2015 14:10:29 +0000 (23:10 +0900)
committerSubhransu Mohanty <sub.mohanty@samsung.com>
Wed, 8 Jul 2015 02:06:13 +0000 (11:06 +0900)
Change-Id: I74c372d13a7f53f10b1179f056f0bbe49306e312

src/lib/efl/interfaces/efl_graphics_utils.c

index 347cd0d..f11081f 100644 (file)
@@ -29,14 +29,15 @@ _efl_graphics_path_length(const Efl_Graphics_Path_Command *commands,
                           unsigned int *pts_length)
 {
    if (commands)
-     while (commands[*cmd_length] != EFL_GRAPHICS_PATH_COMMAND_TYPE_END)
-       {
-          *pts_length += efl_graphics_path_command_length(commands[*cmd_length]);
-          (*cmd_length)++;
-       }
-
+     {
+        while (commands[(*cmd_length)] != EFL_GRAPHICS_PATH_COMMAND_TYPE_END)
+          {
+             (*pts_length) += efl_graphics_path_command_length(commands[(*cmd_length)]);
+             (*cmd_length)++;
+          }
+     }
    // Accounting for END command and handle gracefully the NULL case at the same time
-   cmd_length++;
+   (*cmd_length)++;
 }
 
 static inline Eina_Bool