[evolution-rss] do not destroy unexisting g_hash



commit c5338f5108466d22612a490569669dd1ddec7aa5
Author: Lucian Langa <lucilanga gnome org>
Date:   Sun Mar 27 16:27:05 2011 +0300

    do not destroy unexisting g_hash

 src/rss-image.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/rss-image.c b/src/rss-image.c
index 32024c3..d4427fe 100644
--- a/src/rss-image.c
+++ b/src/rss-image.c
@@ -70,7 +70,8 @@ rss_init_images(void)
 void
 rss_finish_images(void)
 {
-	g_hash_table_destroy(missing);
+	if (missing)
+		g_hash_table_destroy(missing);
 }
 
 void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]