about my visa

Dear friends i came in 5 years resident work visa so in airport they have stamp for 3 month and my sponsor company given me are release and again i found a another job from other company there they dint change still but i have submit my passport and NOC Letter before 1 month end my visa but now this company have lots of problem i need to leave here so if i leave here is there is any problem
when finish your visa date depending that you can leave and you cancelled your previous visa you cannot live more than one week