desktop/unx/source/splashx.c | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 48efe5ce26b519a1a87da1d0ee1acefcb000934e Author: August Sodora <aug...@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 ); _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits