[Libreoffice-commits] core.git: vcl/unx

Dennis Francis dennisfrancis.in at gmail.com
Thu Dec 10 00:29:49 PST 2015


 vcl/unx/gtk3/gtk3gtkframe.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit ce0ad10405bd590498d5f0c093d9afca96d3abca
Author: Dennis Francis <dennisfrancis.in at gmail.com>
Date:   Thu Dec 10 13:19:58 2015 +0530

    Fix a memleak in GtkSalFrame::SetIcon
    
    Change-Id: I70ca3c635033870ca05959561dc0f5b8a2d68939
    Reviewed-on: https://gerrit.libreoffice.org/20561
    Reviewed-by: David Tardon <dtardon at redhat.com>
    Tested-by: David Tardon <dtardon at redhat.com>

diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
index 31b608f..609bd0a 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 )


More information about the Libreoffice-commits mailing list