summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/push-notification.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/push-notification.c b/plugins/push-notification.c
index 218bf8c3..8506c084 100644
--- a/plugins/push-notification.c
+++ b/plugins/push-notification.c
@@ -146,6 +146,7 @@ static DBusMessage *push_notification_unregister_agent(DBusConnection *conn,
return __ofono_error_failed(msg);
sms_agent_free(pn->agent);
+ pn->agent = NULL;
return dbus_message_new_method_return(msg);
}