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 water is formed. As we know, that when water condenses to form water, heat equal to the latent heat of vaporisation is released. Thus, more heat is released in reaction (ii).