Is this a memory leak or unreleased resources
<p>I'm not quite sure if this is a memory leak or if the resources are not being released for GC, but it looks suspect since I'm referencing a property from another object.</p>

<p>I deserialize an XML file into an object. I then use this object to populate some properties of another object. Does doing this keep this deserialized-file-into-a-class-object in memory somewhere:</p>

<pre><code> void Load() {
   MyClass deserializedClass = Helper.GetDeserializedFileFromXml(path, type);
   SetProperty(deserializedClass)
 }

 // MyProperty is a List&lt;ADifferentClass&gt;;
 void SetProp(MyClass myClass) {
    MyProperty = myClass.MyProperty;
 }
</code></pre>

<p><strong>UPDATE</strong></p>

<p>I realized after reading the comments below that the crucial part (and why I asked this is) is that the property is a reference type, a List of a different class.</p>
