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 Answers1

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.

George Grainger
  • 804
  • 7
  • 19