No, the heats released in the two reactions are not equal. The heat released in any reaction depends upon the reactants, products and their physical states. Here in reaction (i), the water produced is in the gaseous state whereas in reaction (ii) liquid is formed. As we know, that when water vapors condensed to from water, heat equal to the latent heat of vaporization is released. Thus, more heat is released in reaction (ii).