Permalink
Browse files

Glimpse integration fix

  • Loading branch information...
1 parent e7e071c commit c52505cf4a66f472ca449218e8b12ae76a59943a @RobertTheGrey committed May 8, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/Spark.Web.Mvc/SparkViewFactory.cs
@@ -136,7 +136,9 @@ public virtual ViewEngineResult FindPartialView(ControllerContext controllerCont
public virtual void ReleaseView(ControllerContext controllerContext, IView view)
{
- Engine.ReleaseInstance((ISparkView)view);
+ var sparkView = view as ISparkView;
+ if (sparkView != null)
+ Engine.ReleaseInstance(sparkView);
}
private readonly Dictionary<BuildDescriptorParams, ISparkViewEntry> _cache =

0 comments on commit c52505c

Please sign in to comment.