1.1.5 g_timer_new bug!



Hi gtk*,
    I had a bit of time to look at the uncommented sources
yesterday:-) some in-source documentation would be nice
you know... Anyway, I noticed that in 1.1.5 g_timer_new()
first allocates memory for the new timer 'object' and then
it simply proceeds to access its members (ptr->something)
without even checking if the allocation was successful!
the other g_timer*() functions do have checking with 
assertions but g_timer_new() does NOT.

		Cheers,
			Emilio

PS. Again, any chance a pause/resume functionality will
    be added?

-- 
D. Emilio Grimaldo Tunon       Compuware Europe B.V. (Uniface Lab)
Software Engineer	       Amsterdam, The Netherlands
emilio_tunon@nl.compuware.com  Tel. +31 (0)20 3126 516
*** The opinions expressed hereby are mine and not my employer's ***



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]