Fix memory leak.

This commit is contained in:
Dr!fter 2015-05-16 09:49:40 -04:00
parent 84580df643
commit 5b0d741271

View File

@ -227,10 +227,6 @@ HookReturnStruct *GetReturnStruct(DHooksCallback *dg)
res->newResult = malloc(sizeof(float));
*(float *)res->orgResult = 0.0;
break;
default:
res->orgResult = malloc(sizeof(void *));
res->orgResult = NULL;
break;
}
}