Some code
FossilOrigin-Name: dc1d1dac0324637a329c19137b2532b339b440e4c485be05dd801b2759e2275f
This commit is contained in:
parent
82eb9ac9f2
commit
2874999a8d
3 changed files with 7 additions and 4 deletions
|
@ -222,8 +222,8 @@ static void fcgi_start(mastodont_t* api)
|
|||
|
||||
if (rc == 0)
|
||||
{
|
||||
free(req);
|
||||
FCGX_Finish_r(req);
|
||||
free(req);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -128,7 +128,7 @@ int try_react_status(struct session* ssn, mastodont_t* api, char* id, char* emoj
|
|||
|
||||
mstdnt_status_emoji_react(api, &m_args, NULL, NULL, id, emoji, &storage, &status);
|
||||
|
||||
mstdnt_cleanup_status(&status);
|
||||
mstdnt_cleanup_status(&status, 0);
|
||||
mstdnt_storage_cleanup(&storage);
|
||||
return 0;
|
||||
}
|
||||
|
@ -405,7 +405,7 @@ void content_status(PATH_ARGS, uint8_t flags)
|
|||
|
||||
mstdnt_cleanup_statuses(statuses_before, stat_before_len);
|
||||
mstdnt_cleanup_statuses(statuses_after, stat_after_len);
|
||||
mstdnt_cleanup_status(&status);
|
||||
mstdnt_cleanup_status(&status, 0);
|
||||
mstdnt_storage_cleanup(&storage);
|
||||
mstdnt_storage_cleanup(&status_storage);
|
||||
tb_free(dup);
|
||||
|
|
|
@ -141,6 +141,9 @@ static void request_cb_tl_public(mstdnt_request_cb_data* cb_data, void* tbargs)
|
|||
|
||||
PUT(":worm: wow!");
|
||||
|
||||
FCGX_Finish_r(req);
|
||||
free(req);
|
||||
|
||||
//content_timeline(req, ssn, api, cb_data->storage, statuses->statuses, statuses->len, 0, NULL, 1, 0);
|
||||
mstdnt_request_cb_cleanup(cb_data);
|
||||
}
|
||||
|
@ -170,7 +173,7 @@ int tl_public(REQUEST_T req, struct session* ssn, mastodont_t* api, int local, e
|
|||
struct request_args* cb_args =
|
||||
request_args_create(req, ssn, api, NULL);
|
||||
|
||||
return mstdnt_timeline_public(api, &m_args, request_cb_tl_public, ssn, &args);
|
||||
return mstdnt_timeline_public(api, &m_args, request_cb_tl_public, cb_args, &args);
|
||||
}
|
||||
|
||||
int tl_list(REQUEST_T req, struct session* ssn, mastodont_t* api, char* list_id)
|
||||
|
|
Loading…
Reference in a new issue