From: Steinar H. Gunderson Date: Sun, 22 Nov 2015 22:18:23 +0000 (+0100) Subject: Fix a small memory leak in GLWidget. X-Git-Tag: 1.0.0~89 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=b52fb85a67eefa93ad976d3881a9491dfdbd615d Fix a small memory leak in GLWidget. --- 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; };