Skip to content

Commit

Permalink
Revert "Release COM object when wrapping in PictureWrapper"
Browse files Browse the repository at this point in the history
This reverts commit 04b32ce.
  • Loading branch information
mmitche committed Oct 18, 2023
1 parent 2af31a9 commit fa023da
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Expand Down Expand Up @@ -53,7 +53,6 @@ protected override object CreateObject(IntPtr externalComObject, CreateObjectFla
int hr = Marshal.QueryInterface(externalComObject, ref pictureIID, out IntPtr comObject);
if (hr == S_OK)
{
Marshal.Release(externalComObject);
return new PictureWrapper(comObject);
}

Expand Down

0 comments on commit fa023da

Please sign in to comment.