X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2FLibCecSharp%2FLibCecSharp.cpp;h=4e76ead7a6ab264252ef97040448e9909fb93729;hb=7e24a7d2d1984468c562277965ab0768f5458549;hp=c6f52a1a17b2bda673177728538602c81421b669;hpb=c39611ec27f44e2db11f57045d0284671ac9b3af;p=deb_libcec.git 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(); }