summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Francis <dennisfrancis.in@gmail.com>2015-12-10 13:19:58 +0530
committerDavid Tardon <dtardon@redhat.com>2015-12-10 08:29:24 +0000
commitce0ad10405bd590498d5f0c093d9afca96d3abca (patch)
treefc8cf96da0b0ad61aa4939de16652fa88df41e99
parentbe738d33d1b9574b4afdc438af2950cea0fb301b (diff)
Fix a memleak in GtkSalFrame::SetIcon
Change-Id: I70ca3c635033870ca05959561dc0f5b8a2d68939 Reviewed-on: https://gerrit.libreoffice.org/20561 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
-rw-r--r--vcl/unx/gtk3/gtk3gtkframe.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
index 31b608f2e7fc..609bd0a0af86 100644
--- a/vcl/unx/gtk3/gtk3gtkframe.cxx
+++ b/vcl/unx/gtk3/gtk3gtkframe.cxx
@@ -1320,6 +1320,7 @@ void GtkSalFrame::SetIcon( sal_uInt16 nIcon )
appicon = g_strdup ("libreoffice-main");
gtk_window_set_icon_name (GTK_WINDOW (m_pWindow), appicon);
+ g_free (appicon);
}
void GtkSalFrame::SetMenu( SalMenu* pSalMenu )