-rw-r--r-- | agg-plot/lua-draw.cpp | 11 |
diff --git a/agg-plot/lua-draw.cpp b/agg-plot/lua-draw.cpp index d533e745..ea1e8f61 100644 --- a/agg-plot/lua-draw.cpp +++ b/agg-plot/lua-draw.cpp @@ -182,16 +182,7 @@ agg_path_cmd (lua_State *L) } pthread_mutex_lock (agg_mutex); - try - { - path_cmd (p, id, s); - } - catch (std::bad_alloc&) - { - pthread_mutex_unlock (agg_mutex); - luaL_error (L, "out of memory"); - return 0; - } + path_cmd (p, id, s); pthread_mutex_unlock (agg_mutex); return 0; } |