summaryrefslogtreecommitdiffstats
path: root/plugins/smart-messaging.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/smart-messaging.c')
-rw-r--r--plugins/smart-messaging.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/smart-messaging.c b/plugins/smart-messaging.c
index 40af89f9..52344de2 100644
--- a/plugins/smart-messaging.c
+++ b/plugins/smart-messaging.c
@@ -165,6 +165,7 @@ static DBusMessage *smart_messaging_unregister_agent(DBusConnection *conn,
return __ofono_error_failed(msg);
sms_agent_free(sm->agent);
+ sm->agent = NULL;
return dbus_message_new_method_return(msg);
}