forked from cory/tildefriends
Don't leak promises.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4752 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
b40457d774
commit
a0af058f5e
@ -1682,6 +1682,9 @@ static void _tf_ssb_following_after_work(uv_work_t* work, int status)
|
|||||||
JS_FreeValue(context, message);
|
JS_FreeValue(context, message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
JS_FreeValue(context, following->promise[0]);
|
||||||
|
JS_FreeValue(context, following->promise[1]);
|
||||||
|
|
||||||
for (int i = 0; i < following->ids_count; i++)
|
for (int i = 0; i < following->ids_count; i++)
|
||||||
{
|
{
|
||||||
tf_free((void*)following->ids[i]);
|
tf_free((void*)following->ids[i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user