]> err.no Git - libchamplain/commit
Time variables (GTimeVal) are declared on the stack.
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Tue, 16 Jun 2009 21:07:25 +0000 (23:07 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Tue, 23 Jun 2009 16:35:40 +0000 (12:35 -0400)
commita10568b7f011af5f2a4f00be873ea0e2daf62e05
treebf65379bbcea3e02d6e221d3e78fc7f3ff5b679c
parent76a0995069528f60ad662c4f557f8698af351445
Time variables (GTimeVal) are declared on the stack.

There's no need to declare them with g_new0 and to free them in the same
funciton. Furthermore, the allocation could fail and the code assumes that all
went fine. If the variable is allocated on the stack there's no need to check
if the allocation was succesful.
champlain/champlain-cache.c