Skip to content

Commit

Permalink
Fixed|libcore: Potential crash (accessing deleted object)
Browse files Browse the repository at this point in the history
When unloading packages, the package identifier string was a reference to
an object that was just deleted.
  • Loading branch information
skyjake committed Dec 29, 2015
1 parent 1982d6b commit 59f685d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/sdk/libcore/src/filesys/packageloader.cpp
Expand Up @@ -168,7 +168,7 @@ DENG2_PIMPL(PackageLoader)
return *pkg;
}

bool unload(String const &identifier)
bool unload(String identifier)
{
LoadedPackages::iterator found = loaded.find(identifier);
if(found == loaded.end()) return false;
Expand Down

0 comments on commit 59f685d

Please sign in to comment.