I must say, the title "Don't let Inkscape Crash" is probably the best title for a bug ever filed for IS.
It is maybe dating me, but in the past, if a malloc() causes problems, it is because somebody has done something bad with a previously- allocated malloc() chunk.
bob
On 5/11/2009 5:14 PM, the Adib wrote:
According to the glib manual for g_try_new: http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-t...
"Attempts to allocate n_structs elements of type struct_type, and returns NULL on failure. Contrast with g_new(), which aborts the program on failure. The returned pointer is cast to a pointer to the given type. If n_structs is 0 it returns NULL. ... Since 2.8"
Can we assume that everyone uses glib 2.8? I already commited patch svn rev 21327 that uses g_try_new ...