[mapserver-commits] r10779 - branches/branch-5-6/mapserver/mapscript/ruby

svn at osgeo.org svn at osgeo.org
Sun Dec 5 23:06:29 EST 2010


Author: jimk
Date: 2010-12-05 20:06:29 -0800 (Sun, 05 Dec 2010)
New Revision: 10779

Modified:
   branches/branch-5-6/mapserver/mapscript/ruby/rbmodule.i
Log:
Backported from trunk to fix ruby mapscript in 5.6. #3619


Modified: branches/branch-5-6/mapserver/mapscript/ruby/rbmodule.i
===================================================================
--- branches/branch-5-6/mapserver/mapscript/ruby/rbmodule.i	2010-12-05 21:26:48 UTC (rev 10778)
+++ branches/branch-5-6/mapserver/mapscript/ruby/rbmodule.i	2010-12-06 04:06:29 UTC (rev 10779)
@@ -22,3 +22,15 @@
     $result = rb_str_new($1.data, $1.size);
     gdFree($1.data);
 }
+
+/* Module initialization: call msSetup() and register msCleanup() */
+%init %{
+
+/* Copied from pymodule.i to fix #3619 */
+    if (msSetup() != MS_SUCCESS)
+    {
+        msSetError(MS_MISCERR, "Failed to set up threads and font cache",
+                   "msSetup()");
+    }
+%}
+



More information about the mapserver-commits mailing list