From 7d4e310226478715d6113dc9f4518486792bb979 Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Thu, 8 Sep 2016 21:28:52 +0100 Subject: [PATCH] Fix warning about deprecation of `gdk_pixbuf_unref` --- ChangeLog | 3 +++ src/bubblegen.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9b4e083..1ad27e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,9 @@ * configure.ac: updated to GNU gettext 0.19 and removed generated files from version control. + * src/bubblegen.c (make_dream_bubble): fix warning about + deprecation of `gdk_pixbuf_unref`. + 2015-05-31 Nick Gasson * src/display_cow.c (close_when_clicked): allow close event to diff --git a/src/bubblegen.c b/src/bubblegen.c index 4b4b458..327d2eb 100644 --- a/src/bubblegen.c +++ b/src/bubblegen.c @@ -470,7 +470,7 @@ GdkPixbuf *make_dream_bubble(const char *file, int *p_width, int *p_height) bubble_content_left(THOUGHT), bubble_content_top(), -1, -1, GDK_RGB_DITHER_NONE, 0, 0); - gdk_pixbuf_unref(image); + g_object_unref(image); return bubble_tidy(&bubble); } -- 2.39.2