MCPcopy Create free account
hub / github.com/MapServer/MapServer / msIO_resetHandlers

Function msIO_resetHandlers

mapio.c:770–806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

768/************************************************************************/
769
770void msIO_resetHandlers()
771
772{
773 msIOContextGroup *group = msIO_GetContextGroup();
774
775 if( group == NULL )
776 return;
777
778 if( strcmp(group->stdin_context.label,"buffer") == 0 )
779 {
780 msIOBuffer *buf = (msIOBuffer *) group->stdin_context.cbData;
781
782 if( buf->data != NULL )
783 free( buf->data );
784 free( buf );
785 }
786
787 if( strcmp(group->stdout_context.label,"buffer") == 0 )
788 {
789 msIOBuffer *buf = (msIOBuffer *) group->stdout_context.cbData;
790
791 if( buf->data != NULL )
792 free( buf->data );
793 free( buf );
794 }
795
796 if( strcmp(group->stderr_context.label,"buffer") == 0 )
797 {
798 msIOBuffer *buf = (msIOBuffer *) group->stderr_context.cbData;
799
800 if( buf->data != NULL )
801 free( buf->data );
802 free( buf );
803 }
804
805 msIO_installHandlers( NULL, NULL, NULL );
806}
807
808/************************************************************************/
809/* msIO_installStdoutToBuffer() */

Callers 1

php_mapscript.cFile · 0.85

Calls 2

msIO_GetContextGroupFunction · 0.85
msIO_installHandlersFunction · 0.85

Tested by

no test coverage detected