push-notification: Fix the nulling of the agent

Same as the previous commit, but applies to push-notifications
This commit is contained in:
Denis Kenzior 2011-02-02 13:24:04 -06:00
parent 16e3c0ffe4
commit 074f1ff516
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}