drawing: fix memory leak in ring_draw_fallback_avatar

gdk_pixbuf_new_from_resource_at_scale allocates new resources
which are never released.

Change-Id: Id3c7a62cd2f7ae706c879cea5fcaf064d54df500
Gitlab: #1008
parent b432bf2e
......@@ -80,6 +80,7 @@ ring_draw_fallback_avatar(int size, const std::string& letter, const char color)
gdk_pixbuf_composite (fallbackavatar, finalAvatar, 0, 0, size, size, 0, 0, 1, 1, GDK_INTERP_BILINEAR, 0xff);
/* free resources */
g_object_unref(fallbackavatar);
cairo_destroy(cr);
cairo_surface_destroy(surface);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment