Lube them good with silicone grease and keep gas pressure in the mags at all times to keep it from happening again.
My KJW M9 mags lasted over 2 years, leak free.
Once in awhile, spray some silicone inside the mags then charge with gas. The liquid will work it's way to the packings and lube them up.