summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@novell.com>2011-07-13 19:19:45 +0200
committerKohei Yoshida <kyoshida@novell.com>2011-07-13 20:51:47 -0400
commit8588ed1abda9973ac724e55adb38dadabddf6a05 (patch)
treedda23fe48ebbdca409d43576d209b1abfe8edd43
parent7d49e0a90917c8ede66d4ef260276306f914f30f (diff)
null the display pointer after closing the display, fixes fdo#37579
Signed-off-by: Jan Holesovsky <kendy@suse.cz> Signed-off-by: Noel Power <nopower@novell.com> Signed-off-by: Kohei Yoshida <kyoshida@novell.com>
-rwxr-xr-xdesktop/unx/source/splashx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop/unx/source/splashx.c b/desktop/unx/source/splashx.c
index 711671fe28..4f5d4b217a 100755
--- a/desktop/unx/source/splashx.c
+++ b/desktop/unx/source/splashx.c
@@ -620,6 +620,7 @@ void splash_draw_progress( int progress )
void splash_close_window()
{
XCloseDisplay( display );
+ display = NULL;
#ifdef USE_LIBPNG
png_destroy_read_struct( &png_ptr, &info_ptr, NULL );
#else