[Libreoffice-commits] .: desktop/unx

Lionel Elie Mamane lmamane at kemper.freedesktop.org
Fri Nov 18 00:30:31 PST 2011


 desktop/unx/source/splashx.c |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 48efe5ce26b519a1a87da1d0ee1acefcb000934e
Author: August Sodora <augsod at gmail.com>
Date:   Thu Nov 17 21:06:16 2011 -0500

    Valgrind: fixed memory leak

diff --git a/desktop/unx/source/splashx.c b/desktop/unx/source/splashx.c
index 0c7024d..3d3981d 100644
--- a/desktop/unx/source/splashx.c
+++ b/desktop/unx/source/splashx.c
@@ -744,6 +744,12 @@ void splash_destroy(struct splash* splash)
     {
         if(splash->display)
         {
+            if(splash->gc)
+            {
+                XFreeGC(splash->display, splash->gc);
+                splash->gc = NULL;
+            }
+
             XCloseDisplay( splash->display );
             splash->display = NULL;
             png_destroy_read_struct( &(splash->png_ptr), &(splash->info_ptr), NULL );


More information about the Libreoffice-commits mailing list