mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-06 13:26:58 +03:00
NOISSUE fix minor memory leaks
This commit is contained in:
parent
67eca08b22
commit
eb747e08b7
7 changed files with 12 additions and 8 deletions
|
|
@ -33,6 +33,14 @@ MinecraftProfile::MinecraftProfile(ProfileStrategy *strategy)
|
|||
clear();
|
||||
}
|
||||
|
||||
MinecraftProfile::~MinecraftProfile()
|
||||
{
|
||||
if(m_strategy)
|
||||
{
|
||||
delete m_strategy;
|
||||
}
|
||||
}
|
||||
|
||||
void MinecraftProfile::setStrategy(ProfileStrategy* strategy)
|
||||
{
|
||||
Q_ASSERT(strategy != nullptr);
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ class MULTIMC_LOGIC_EXPORT MinecraftProfile : public QAbstractListModel
|
|||
|
||||
public:
|
||||
explicit MinecraftProfile(ProfileStrategy *strategy);
|
||||
virtual ~MinecraftProfile();
|
||||
|
||||
void setStrategy(ProfileStrategy * strategy);
|
||||
ProfileStrategy *strategy();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue