Don't use dive before checking it against NULL

Dive gets dereferenced in get_surface_pressure_in_mbar().

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Another case of 'dereference before NULL check'

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Uemis GPS location tracking seems backwards

I can't figure out how this ever worked...

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Avoid calling free on uninitialized dive variable

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Code Cleanup ( that fix 2 bugs )

This code cleanup fixes the two issues that I raised on
my last e-mail. hurrah.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Fix retrieving the initial position of the Notification Area.

We had all in place, all that was missing was to actually load
the position stored on the settings for the tooltips.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>