"And his soul was vexed [shortened] unto death" (Judges 16:16). Rabbi Yohanan said: his soul was shortened unto death, but hers was not shortened, because she would satisfy her needs from another place.
Samson's Soul Was Vexed to Death While Delilah Was Not
Yalkut Shimoni on Nach 70:10
ותקצר נפשו למות. א"ר יוחנן הוא קצרה נפשו למות אבל היא לא קצרה נפשה למה שהיתה עושה צרכיה ממקום אחר: