Skip to content

Commit

Permalink
change InteropObjectInstance Dispose(bool) access modifier to protected
Browse files Browse the repository at this point in the history
  • Loading branch information
GonzRu committed May 16, 2015
1 parent 5b71478 commit 09e715b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ public void Dispose()
return;
myIsDisposing = true;
Dispose(true);

GC.SuppressFinalize(this);
}

public virtual void Dispose(bool disposing)
protected virtual void Dispose(bool disposing)
{
Pointer = IntPtr.Zero;
GC.SuppressFinalize(this);
}

~InteropObjectInstance()
Expand Down
2 changes: 1 addition & 1 deletion src/Vlc.DotNet.Core.Interops/VlcEventManagerInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ internal VlcEventManagerInstance(VlcManager manager, IntPtr pointer) : base(poin
myManager = manager;
}

public override void Dispose(bool disposing)
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Vlc.DotNet.Core.Interops/VlcInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ internal VlcInstance(VlcManager manager, IntPtr pointer) : base(pointer)
myManager = manager;
}

public override void Dispose(bool disposing)
protected override void Dispose(bool disposing)
{
if (Pointer != IntPtr.Zero)
myManager.ReleaseInstance(this);
Expand Down
2 changes: 1 addition & 1 deletion src/Vlc.DotNet.Core.Interops/VlcMediaInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ internal VlcMediaInstance(VlcManager manager, IntPtr pointer) : base(pointer)
myManager = manager;
}

public override void Dispose(bool disposing)
protected override void Dispose(bool disposing)
{
if (Pointer != IntPtr.Zero)
myManager.ReleaseMedia(this);
Expand Down
2 changes: 1 addition & 1 deletion src/Vlc.DotNet.Core.Interops/VlcMediaPlayerInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ internal VlcMediaPlayerInstance(VlcManager manager, IntPtr pointer) : base(point
myManager = manager;
}

public override void Dispose(bool disposing)
protected override void Dispose(bool disposing)
{
if (Pointer != IntPtr.Zero)
myManager.ReleaseMediaPlayer(this);
Expand Down

0 comments on commit 09e715b

Please sign in to comment.