Fixed directory memory leak.
This commit is contained in:
parent
7833615363
commit
b856e69223
@ -148,6 +148,8 @@ ModelsLoad()
|
|||||||
modelfilecount++;
|
modelfilecount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CloseHandle(modeldir);
|
||||||
|
|
||||||
// Increment variable if model files are valid.
|
// Increment variable if model files are valid.
|
||||||
if (modelfilecount)
|
if (modelfilecount)
|
||||||
{
|
{
|
||||||
@ -318,4 +320,4 @@ stock ModelsGetRandomModelIndex(String:modelpath[], maxlen, bool:all = true, boo
|
|||||||
|
|
||||||
// Get the path to the selected model.
|
// Get the path to the selected model.
|
||||||
ModelReturnPath(modelindex, modelpath, maxlen);
|
ModelReturnPath(modelindex, modelpath, maxlen);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user