diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-05-04 16:44:43 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-05-04 17:49:27 +0200 |
commit | 5e34e3741de8aae10bf30889c227581818276186 (patch) | |
tree | b2428db7138e83f08883f7af35da8954b9e4d68b /vcl/unx | |
parent | 3cebb7365270ce79835a8f8a0ef44179a051159b (diff) |
memory from getenv is not ours to free
regrssion from...
commit c3074cb5784329eaf558c2f58d96a64085b42d48
Author: Chris Sherlock <chris.sherlock79@gmail.com>
Date: Sun Jan 7 00:39:33 2018 +1100
vcl: remove dead code
Change-Id: I3295ece62e97d00e56db95d0005d13d2a97984c2
Reviewed-on: https://gerrit.libreoffice.org/53858
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkframe.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx index 8a18974d2635..3595e0bf20c7 100644 --- a/vcl/unx/gtk3/gtk3gtkframe.cxx +++ b/vcl/unx/gtk3/gtk3gtkframe.cxx @@ -385,8 +385,7 @@ bool GtkSalFrame::doKeyCallback( guint state, vcl::DeletionListener aDel( this ); #if OSL_DEBUG_LEVEL > 0 - char* pKeyDebug = nullptr; - pKeyDebug = getenv("VCL_GTK3_PAINTDEBUG"); + const char* pKeyDebug = getenv("VCL_GTK3_PAINTDEBUG"); if (pKeyDebug && *pKeyDebug == '1') { @@ -413,8 +412,6 @@ bool GtkSalFrame::doKeyCallback( guint state, } } } - - free(pKeyDebug); #endif /* |