diff options
author | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-05-26 19:21:07 -0700 |
---|---|---|
committer | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-05-26 19:21:07 -0700 |
commit | aae892dfd1a28411fc14c267c073c71c20696f39 (patch) | |
tree | d69d3a0b47d464463dbf983c486a41c078278117 /launcher/modplatform | |
parent | e61d8e4dc870aaeb2949557a87cf2749df573667 (diff) | |
download | PrismLauncher-aae892dfd1a28411fc14c267c073c71c20696f39.tar.gz PrismLauncher-aae892dfd1a28411fc14c267c073c71c20696f39.tar.bz2 PrismLauncher-aae892dfd1a28411fc14c267c073c71c20696f39.zip |
fix(memory leak): IndexedPack too large to live inside a qlist without pointers ()
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/modplatform')
-rw-r--r-- | launcher/modplatform/ModIndex.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/launcher/modplatform/ModIndex.h b/launcher/modplatform/ModIndex.h index 40f1efc4..8d0223f9 100644 --- a/launcher/modplatform/ModIndex.h +++ b/launcher/modplatform/ModIndex.h @@ -23,6 +23,7 @@ #include <QString> #include <QVariant> #include <QVector> +#include <memory> class QIODevice; @@ -83,6 +84,8 @@ struct ExtraPackData { }; struct IndexedPack { + using Ptr = std::shared_ptr<IndexedPack>; + QVariant addonId; ResourceProvider provider; QString name; |