It works similar to most handguns, there is a push button behind the trigger as seen below, this pushes the inset on the other side of the handle which when the button is not pressed rests inside the notch on the magazine, also shown below. Its a pretty simple mechanism
Heres the inside view of the button if it helps you visualise a little better [off a beretta but very similar]