Skip to content
Permalink
Browse files
Add msSetup()/msCleanup() to SWIG PHP Mapscript
  • Loading branch information
bragef committed Dec 12, 2019
1 parent a64b324 commit 730e2ccec179802260f431f1e5b1f69496f7d19d
Showing 1 changed file with 17 additions and 0 deletions.
@@ -11,3 +11,20 @@
if( $1.owns_data )
msFree($1.data);
}


/* Module initialization: call msSetup() and register msCleanup() */
%init %{
if (msSetup() != MS_SUCCESS)
{
msSetError(MS_MISCERR, "Failed to set up threads and font cache",
"msSetup()");
}

%}

%mshutdown {
msCleanup();
}


0 comments on commit 730e2cc

Please sign in to comment.