]> err.no Git - libchamplain/commit
Time variables (GTimeVal) are declared on the stack.
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Tue, 16 Jun 2009 21:13:15 +0000 (23:13 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Tue, 23 Jun 2009 16:35:40 +0000 (12:35 -0400)
commit41be4553778730ff53e610d60218ab142b51cbdc
treeb97e2a83592437b9cf9c8a2d1312cce100abd689
parent5ae169833922f9b78545eb9437f377ba66f3270b
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-network-map-source.c