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