Fix the view lastpos response.

The locarray json data is transferred to the response object and if
it is deleted here results in an empty object being returned to the user
and the default view just shows "Imported data is malformed" instead of
a map. This restores the vmap functionality.

Signed-off-by: Pat Thoyts <pat.thoyts@gmail.com>
This commit is contained in:
Pat Thoyts
2024-06-14 00:34:50 +01:00
parent 81edd329f8
commit eb001ef2aa
-1
View File
@@ -1105,7 +1105,6 @@ static int view(struct mg_connection *conn, const char *viewname)
json_append_member(obj, "data", locarray);
json_delete(view);
json_delete(locarray);
return (json_response(conn, obj));
/* NOTREACHED */