aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--divelist.c4
-rw-r--r--gps.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/divelist.c b/divelist.c
index 288b78753..b5fe48e5b 100644
--- a/divelist.c
+++ b/divelist.c
@@ -922,7 +922,7 @@ static void fill_one_dive(struct dive *dive,
-1);
if (icon)
- gdk_pixbuf_unref(icon);
+ g_object_unref(icon);
free(location);
free(cylinder);
free(suit);
@@ -1328,7 +1328,7 @@ static void fill_dive_list(void)
DIVE_SAC, 0,
-1);
if (icon)
- gdk_pixbuf_unref(icon);
+ g_object_unref(icon);
gtk_tree_store_append(liststore, &iter, NULL);
gtk_tree_store_set(liststore, &iter,
DIVE_INDEX, i,
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);
}