author | Francesco Abbate <francesco.bbt@gmail.com> | 2011年12月18日 00:02:19 +0100 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2011年12月18日 00:02:19 +0100 |
commit | ee563973094a8235631d5208bd672f8cbbe15fdc (patch) | |
tree | 6a72a6e6ece3cb9a96fc221f3e04922e63f42f00 /agg-plot/lua-draw.cpp | |
parent | ef0f158b491b4211c392ce4c4c50891b6d5631de (diff) | |
download | gsl-shell-ee563973094a8235631d5208bd672f8cbbe15fdc.tar.gz |
-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; } |