[Commits] [SCM] claws branch, gtk3, updated. 3.99.0-44-g3bf0773e1

miras at claws-mail.org miras at claws-mail.org
Fri Mar 5 09:30:42 CET 2021


The branch, gtk3 has been updated
       via  3bf0773e1d6cf94d0052406307e76a92478bf04e (commit)
      from  2cd46df8f5b924f9969b28aaa36ec73b616a1961 (commit)

Summary of changes:
 src/common/stringtable.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 3bf0773e1d6cf94d0052406307e76a92478bf04e
Author: Michael Rasmussen <mir at datanom.net>
Date:   Fri Mar 5 09:30:35 2021 +0100

    Fix bug #4455
    
    Signed-off-by: Michael Rasmussen <mir at datanom.net>

diff --git a/src/common/stringtable.c b/src/common/stringtable.c
index e94518175..7d5767d62 100644
--- a/src/common/stringtable.c
+++ b/src/common/stringtable.c
@@ -64,8 +64,11 @@ StringTable *string_table_new(void)
 	strtable = g_new0(StringTable, 1);
 	cm_return_val_if_fail(strtable != NULL, NULL);
 	strtable->hash_table = g_hash_table_new(g_str_hash, g_str_equal);
-	cm_return_val_if_fail(strtable->hash_table, NULL);
-	return strtable;
+        if (strtable->hash_table == NULL) {
+                g_free(strtable);
+                return NULL;
+        }
+        return strtable;
 }
 
 gchar *string_table_insert_string(StringTable *table, const gchar *str)

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list