forked from pool/libreoffice
23 lines
520 B
Diff
23 lines
520 B
Diff
|
--- desktop/unx/source/splashx.c
|
||
|
+++ desktop/unx/source/splashx.c
|
||
|
@@ -612,6 +612,9 @@
|
||
|
// Draw the progress
|
||
|
void splash_draw_progress( int progress )
|
||
|
{
|
||
|
+ if (!display)
|
||
|
+ return;
|
||
|
+
|
||
|
// sanity
|
||
|
if ( progress < 0 )
|
||
|
progress = 0;
|
||
|
@@ -642,7 +645,8 @@
|
||
|
// Close the window & cleanup
|
||
|
void splash_close_window()
|
||
|
{
|
||
|
- XCloseDisplay( display );
|
||
|
+ if (display)
|
||
|
+ XCloseDisplay( display );
|
||
|
display = NULL;
|
||
|
#ifdef USE_LIBPNG
|
||
|
png_destroy_read_struct( &png_ptr, &info_ptr, NULL );
|