Use g_memdup2 instead of g_memdup
This fixes a compile warning. See: https://discourse.gnome.org/t/port-your-module-from-g-memdup-to-g-memdup2-now/5538pull/1222/head
parent
ab38f13052
commit
cb49650ea4
|
@ -287,7 +287,7 @@ Glib::RefPtr<Gdk::Pixbuf> Item::extractPixBuf(GVariant* variant) {
|
||||||
if (array != nullptr) {
|
if (array != nullptr) {
|
||||||
g_free(array);
|
g_free(array);
|
||||||
}
|
}
|
||||||
array = static_cast<guchar*>(g_memdup(data, size));
|
array = static_cast<guchar*>(g_memdup2(data, size));
|
||||||
lwidth = width;
|
lwidth = width;
|
||||||
lheight = height;
|
lheight = height;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue