mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
df8fb3be98
commit
2f059c8b81
2 changed files with 3 additions and 3 deletions
2
gps.c
2
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue