cec: unload libCEC when the lib version is invalid
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 10 Jan 2012 10:55:40 +0000 (11:55 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 10 Jan 2012 10:55:40 +0000 (11:55 +0100)
src/testclient/main.cpp

index 953b6b19bf3b53773d634899688ad5d9ae2df705..092a83a12487f991f47f3c4971009c35d68b5732 100644 (file)
@@ -972,6 +972,10 @@ int main (int argc, char *argv[])
 #else
     cout << "Cannot load libcec.so" << endl;
 #endif
+
+    if (parser)
+      UnloadLibCec(parser);
+
     return 1;
   }