[mythtv-commits] [MythTV/mythtv] 0fb7b1: Fix New, Delete type mismatch (#1123)

Steve Erlenborn noreply at github.com
Sun Jun 1 15:53:14 UTC 2025


  Branch: refs/heads/master
  Home:   https://github.com/MythTV/mythtv
  Commit: 0fb7b1b43dd240e8627fbf18bd2a5a37e59f1f4e
      https://github.com/MythTV/mythtv/commit/0fb7b1b43dd240e8627fbf18bd2a5a37e59f1f4e
  Author: Steve Erlenborn <1751095+SteveErl at users.noreply.github.com>
  Date:   2025-06-01 (Sun, 01 Jun 2025)

  Changed paths:
    M mythtv/libs/libmythui/opengl/mythrenderopengl.h

  Log Message:
  -----------
  Fix New, Delete type mismatch (#1123)

At the allocation point a MythVideoTextureOpenGL
class was created. At the deletion point, a
MythGLTexture was released. MythGLTexture is a
base class for MythVideoTextureOpenGL.

If you intend to delete a derived class object
through a base class pointer, the base class must
have a virtual destructor. This ensures that the
correct destructor for the derived class is
called when the object is deleted.

This modification stipulates the destructor for
MythGLTexture to be virtual. This ensures that
the type upon deletion matches the type upon
creation.

Resolves #1121



To unsubscribe from these emails, change your notification settings at https://github.com/MythTV/mythtv/settings/notifications


More information about the mythtv-commits mailing list