I believe _canvas will be destroyed by its parent.
authorCarl Hetherington <cth@carlh.net>
Fri, 10 May 2019 00:35:52 +0000 (01:35 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 10 May 2019 22:43:55 +0000 (23:43 +0100)
src/wx/gl_video_view.cc

index 0f0118e00fde0699007c82431255006216a5d82a..f75d50f9dc8fd9716881458ee6cd8c0440fe66c1 100644 (file)
@@ -53,8 +53,6 @@ GLVideoView::~GLVideoView ()
 {
        glDeleteTextures (1, &_id);
        delete _context;
 {
        glDeleteTextures (1, &_id);
        delete _context;
-       /* XXX: should we delete this? */
-       delete _canvas;
 }
 
 static void
 }
 
 static void