Permalink
Browse files

Try to lick bogus 'a c finalizer called back into haskell' error

  • Loading branch information...
1 parent 0fe8a54 commit 2e31154c03621757f4850ec94ba1c6e42811b8aa @gregorycollins gregorycollins committed May 30, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/Snap/Iteratee.hs
View
@@ -59,6 +59,7 @@ import Data.Iteratee.WrappedByteString
import Data.Monoid (mappend)
import Foreign
import Foreign.C.Types
+import GHC.ForeignPtr
import Prelude hiding (catch,drop)
import qualified Data.DList as D
@@ -167,7 +168,7 @@ bUFSIZ = 8192
-- | Creates a buffer to be passed into 'unsafeBufferIterateeWithBuffer'.
mkIterateeBuffer :: IO (ForeignPtr CChar)
-mkIterateeBuffer = mallocForeignPtrBytes bUFSIZ
+mkIterateeBuffer = mallocPlainForeignPtrBytes bUFSIZ
------------------------------------------------------------------------------
-- | Buffers an iteratee, \"unsafely\". Here we use a fixed binary buffer which

0 comments on commit 2e31154

Please sign in to comment.