From 7e24a7d2d1984468c562277965ab0768f5458549 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Tue, 14 Feb 2012 15:44:50 +0100 Subject: [PATCH] LibCecSharp: set the callback methods in libcec to NULL before closing the connection, since these might already have been destroyed in .NET --- src/LibCecSharp/LibCecSharp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/LibCecSharp/LibCecSharp.cpp b/src/LibCecSharp/LibCecSharp.cpp index c6f52a1..4e76ead 100644 --- a/src/LibCecSharp/LibCecSharp.cpp +++ b/src/LibCecSharp/LibCecSharp.cpp @@ -136,6 +136,8 @@ namespace CecSharp void Close(void) { + // delete the callbacks, since these might already have been destroyed in .NET + m_libCec->EnableCallbacks(NULL, NULL); m_libCec->Close(); } -- 2.34.1