]> git.sesse.net Git - nageru/commitdiff
Fix a small memory leak in GLWidget.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 22 Nov 2015 22:18:23 +0000 (23:18 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 22 Nov 2015 22:18:23 +0000 (23:18 +0100)
glwidget.cpp
glwidget.h

index f96484469008d4b63728d866709269dda2fd227d..e9b97d53ac42d748eea0e88f7efe37786376115f 100644 (file)
@@ -10,7 +10,6 @@
 
 #include "glwidget.h"
 
-#include <movit/resource_pool.h>
 #include <stdio.h>
 #include <functional>
 #include <mutex>
@@ -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)
 {
 }
 
index 25a8ad7b7a7b99483dd59e5799a17c7b80ea4102..2cf34eb0a50364f3dc523e38daacd9db4b5249e8 100644 (file)
 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;
 };