Merge pull request #325 from stqism/master

Fixed a calloc getting freed before being used
This commit is contained in:
irungentoo 2013-08-04 13:25:57 -07:00
commit 10024f5073

View File

@ -256,6 +256,5 @@ ToxWindow new_chat(int friendnum) {
x->friendnum = friendnum;
ret.x = (void*) x;
free(x);
return ret;
}