[Pcsclite-cvs-commit] PCSC/doc/example pcsc_demo.c,1.1,1.2
rousseau@quantz.debian.org
rousseau@quantz.debian.org
Wed, 03 Sep 2003 23:13:05 +0200
Update of /cvsroot/pcsclite/PCSC/doc/example
In directory quantz:/tmp/cvs-serv8899
Modified Files:
pcsc_demo.c
Log Message:
add a call to SCardUnload(). This is not mandatory, just cleaner.
Index: pcsc_demo.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/doc/example/pcsc_demo.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- pcsc_demo.c 22 Aug 2003 13:36:12 -0000 1.1
+++ pcsc_demo.c 3 Sep 2003 21:13:03 -0000 1.2
@@ -141,6 +141,9 @@
printf("SCardReleaseContext: %s (0x%lX)\n", pcsc_stringify_error(rv),
rv);
+ /* Free allocated resources */
+ SCardUnload();
+
return 0;
} /* main */