0

I have following code like below:

SPWeb web = SPContext.Current.Web; VariationLabel label = GetCurrentVariationLabel(web); return label; 

Can this cause memory leak?How would I dispose this web?

1 Answer 1

0

This questions addresses the issue I believe you're asking. The short of it being, if you're using the current context web, there is no need for disposal.