sms: don't try to destroy NULL hash tables

This commit is contained in:
Nathan Williams
2011-04-07 17:48:03 -05:00
committed by Dan Williams
parent 9435a937ce
commit dbf9e085d4

View File

@@ -144,7 +144,8 @@ sms_auth_info_destroy (gpointer data)
{
SmsAuthInfo *info = data;
g_hash_table_destroy (info->hash);
if (info->hash)
g_hash_table_destroy (info->hash);
g_free (info->str);
memset (info, 0, sizeof (SmsAuthInfo));
g_free (info);