diff options
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/sslcert.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/sslcert.c b/desktop/sslcert.c index e247b0bd0..bd53357d6 100644 --- a/desktop/sslcert.c +++ b/desktop/sslcert.c @@ -56,7 +56,7 @@ struct sslcert_session_data { }; /** Handle for the window icon. */ -static hlcache_handle *sslcert_icon; +static hlcache_handle *sslcert_icon = NULL; /** Initialise ssl certificate window. */ void sslcert_init(const char* icon_name) @@ -78,8 +78,8 @@ unsigned int sslcert_get_tree_flags(void) void sslcert_cleanup(void) { - hlcache_handle_release(sslcert_icon); - return; + if (sslcert_icon != NULL) + hlcache_handle_release(sslcert_icon); } struct sslcert_session_data * |