aboutsummaryrefslogtreecommitdiffstats
path: root/gps.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-09 11:48:12 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-09 11:48:12 -0800
commit2f059c8b818b2032689d7b75330cf66032b5365a (patch)
tree80bfd089d623dbb9de883dd5789e678a3eafae01 /gps.c
parentdf8fb3be9876468fd2b80283774cce278c1aedf8 (diff)
downloadsubsurface-2f059c8b818b2032689d7b75330cf66032b5365a.tar.gz
Replace deprecated gdk_pixbuf_unref with g_object_unref
This appears to be the better API call to do this (according to online documentation and compiler warnings on Linux). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gps.c')
-rw-r--r--gps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gps.c b/gps.c
index 6c0644420..9467eb137 100644
--- a/gps.c
+++ b/gps.c
@@ -228,7 +228,7 @@ void show_gps_location(struct dive *dive, void (*callback)(float, float))
picture = gdk_pixbuf_from_pixdata(&flag_pixbuf, TRUE, NULL);
if (picture) {
osm_gps_map_image_add_with_alignment(map, lat, lng, picture, 0, 1);
- gdk_pixbuf_unref(picture);
+ g_object_unref(picture);
} else {
printf("error message: %s\n", gerror->message);
}