You don't have to modify Smack. You simply have to add something along these lines anywhere in Spark. This is the workaround to the current leak.
KeepAliveManager.addFailedPingListener(new PingFailedListener()
{
public void pingFailed()
{}
});