summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/minimalegl/qminimaleglintegration.cpp
diff options
context:
space:
mode:
authorJesus Fernandez <jesus.fernandez@qt.io>2017-07-25 13:42:50 +0200
committerJesus Fernandez <Jesus.Fernandez@qt.io>2017-07-25 12:14:39 +0000
commita493170a94907242360584890c4158ed38b394b1 (patch)
tree7958f7f6d579ba524837bb334202e99548a771d9 /src/plugins/platforms/minimalegl/qminimaleglintegration.cpp
parent7964b7468de65459f3c0e431549fa93408c19a62 (diff)
Fix memory leak
CID 10994 (#1 of 1): Resource leak in object (CTOR_DTOR_LEAK) The font database was not destroyed in the destructor. Coverity-Id: 10994 Change-Id: Ibd4cb0b65d1e554593295a3654e8d8c946551cc2 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> Reviewed-by: Jesus Fernandez <Jesus.Fernandez@qt.io>
Diffstat (limited to 'src/plugins/platforms/minimalegl/qminimaleglintegration.cpp')
-rw-r--r--src/plugins/platforms/minimalegl/qminimaleglintegration.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/minimalegl/qminimaleglintegration.cpp b/src/plugins/platforms/minimalegl/qminimaleglintegration.cpp
index 81512b1561..a716a6092a 100644
--- a/src/plugins/platforms/minimalegl/qminimaleglintegration.cpp
+++ b/src/plugins/platforms/minimalegl/qminimaleglintegration.cpp
@@ -100,6 +100,7 @@ QMinimalEglIntegration::QMinimalEglIntegration()
QMinimalEglIntegration::~QMinimalEglIntegration()
{
destroyScreen(mScreen);
+ delete mFontDb;
}
bool QMinimalEglIntegration::hasCapability(QPlatformIntegration::Capability cap) const