From b52fb85a67eefa93ad976d3881a9491dfdbd615d Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 22 Nov 2015 23:18:23 +0100 Subject: [PATCH] Fix a small memory leak in GLWidget. --- glwidget.cpp | 4 +--- glwidget.h | 5 ----- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/glwidget.cpp b/glwidget.cpp index f964844..e9b97d5 100644 --- a/glwidget.cpp +++ b/glwidget.cpp @@ -10,7 +10,6 @@ #include "glwidget.h" -#include #include #include #include @@ -33,8 +32,7 @@ class QWidget; using namespace std; GLWidget::GLWidget(QWidget *parent) - : QGLWidget(parent, global_share_widget), - resource_pool(new movit::ResourcePool) + : QGLWidget(parent, global_share_widget) { } diff --git a/glwidget.h b/glwidget.h index 25a8ad7..2cf34eb 100644 --- a/glwidget.h +++ b/glwidget.h @@ -13,10 +13,6 @@ class QMouseEvent; class QWidget; -namespace movit { -class ResourcePool; -} - // Note: We use the older QGLWidget instead of QOpenGLWidget as it is // much faster (does not go through a separate offscreen rendering step). // @@ -46,7 +42,6 @@ signals: private: Mixer::Output output; - movit::ResourcePool *resource_pool; GLuint vao, program_num; GLuint position_vbo, texcoord_vbo; }; -- 2.39.2