1 | diff --git a/libs/libmythtv/openglcontext.cpp b/libs/libmythtv/openglcontext.cpp |
---|
2 | index c1632a7..1a310f1 100644 |
---|
3 | --- a/libs/libmythtv/openglcontext.cpp |
---|
4 | +++ b/libs/libmythtv/openglcontext.cpp |
---|
5 | @@ -80,11 +80,8 @@ OpenGLContext::~OpenGLContext() |
---|
6 | m_priv->m_glx_context = 0; |
---|
7 | } |
---|
8 | |
---|
9 | - if (m_priv) |
---|
10 | - { |
---|
11 | - delete m_priv; |
---|
12 | - m_priv = NULL; |
---|
13 | - } |
---|
14 | + delete m_priv; |
---|
15 | + m_priv = NULL; |
---|
16 | } |
---|
17 | |
---|
18 | void OpenGLContext::Hide(void) |
---|
19 | @@ -349,11 +346,8 @@ bool OpenGLContext::SetupTexture(const QSize &size, uint tex, int filt) |
---|
20 | glGetTexLevelParameteriv(GetTextureType(), 0, GL_TEXTURE_WIDTH, &check); |
---|
21 | MakeCurrent(false); |
---|
22 | |
---|
23 | - if (scratch) |
---|
24 | - { |
---|
25 | - delete scratch; |
---|
26 | - scratch = NULL; |
---|
27 | - } |
---|
28 | + delete scratch; |
---|
29 | + scratch = NULL; |
---|
30 | |
---|
31 | return (check == size.width()); |
---|
32 | } |
---|