Thu Feb 15 04:37:43 PST 2007 Duncan Coutts <duncan@...>
* Check for NULL pointers in makeNewGObject and makeNewObject
We don't need to check constructNewGObject because it's always used
with constructors where as the other two are used when recieving
existing objects and these are the most likely to be NULL.
hunk ./glib/System/Glib/GObject.chs.pp 63
-import Monad (liftM)
+import Control.Monad (liftM, when)
hunk ./glib/System/Glib/GObject.chs.pp 123
+ when (objPtr == nullPtr) (fail "makeNewGObject: object is NULL")
hunk ./gtk/Graphics/UI/Gtk/Abstract/Object.chs.pp 66
+import Control.Monad (when)
hunk ./gtk/Graphics/UI/Gtk/Abstract/Object.chs.pp 106
+ when (objPtr == nullPtr) (fail "makeNewObject: object is NULL")
Get latest updates about Open Source Projects, Conferences and News.