aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Williams <njw@chromium.org>2011-04-07 17:48:03 -0500
committerDan Williams <dcbw@redhat.com>2011-04-07 17:48:03 -0500
commitdbf9e085d45c5135691a487cd947b9bd79195d86 (patch)
tree97a1940551663d6f53c1159cc20f9fe4c2abd435
parent9435a937ced680fd2aaf3f19bfc8e7daaf579633 (diff)
sms: don't try to destroy NULL hash tables
-rw-r--r--src/mm-modem-gsm-sms.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mm-modem-gsm-sms.c b/src/mm-modem-gsm-sms.c
index d74c7b39..271c67b0 100644
--- a/src/mm-modem-gsm-sms.c
+++ b/src/mm-modem-gsm-sms.c
@@ -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);