Evas filters: Fix parsing of curve() with a function
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 15 Jul 2015 05:09:49 +0000 (14:09 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 15 Jul 2015 05:10:50 +0000 (14:10 +0900)
If the points argument was a function, there was a Lua call
stack error, making the filter fail.

src/lib/evas/filters/evas_filter_parser.c

index d6d1e35..c278687 100644 (file)
@@ -1277,7 +1277,7 @@ _lua_curve_points_func(lua_State *L, int i, Evas_Filter_Program *pgm EINA_UNUSED
                        if (n < -1) n = 0;
                        if (n > 255) n = 255;
                     }
-                  lua_pop(L, 1);
+                  lua_pop(L, 2);
                   values[k] = (int) n;
                }
              else