Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fdbfb0af authored by Jeremy Gebben's avatar Jeremy Gebben Committed by Arne Coucheron
Browse files

FontRenderer: do not leak mIndexBufferID

This glBuffer needs to be deleted to avoid leaking
graphics memory.

CRs-Fixed: 346272
Change-Id: Ib56553fffbf88848905893b02a986765823050ad
(cherry picked from commit 8ee3ffb1c0096767311b55c509e1288901f3747f)
parent 300bdcd3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -368,6 +368,10 @@ FontRenderer::~FontRenderer() {
        delete[] mTextTexture;
    }

    if (mIndexBufferID) {
        glDeleteBuffers(1, &mIndexBufferID);
    }

    if (mTextureId) {
        glDeleteTextures(1, &mTextureId);
    }