Bug #2188 » 0064-gtk4-x-Fix-failed-asserts-when-tileset-does-not-have.patch
| client/gui-gtk-4.0/citydlg.c | ||
|---|---|---|
|
gtk_list_store_set(store, &iter, 0, pix,
|
||
|
1, name, 3, useless,
|
||
|
2, (gint)cid_encode(items[item].item), -1);
|
||
|
g_object_unref(G_OBJECT(pix));
|
||
|
if (pix != NULL) {
|
||
|
g_object_unref(G_OBJECT(pix));
|
||
|
}
|
||
|
if (are_universals_equal(target, &pcity->production)) {
|
||
|
cur = actcount;
|
||
| client/gui-gtk-4.0/wldlg.c | ||
|---|---|---|
|
}
|
||
|
pix = sprite_get_pixbuf(sprite);
|
||
|
g_object_set(rend, "pixbuf", pix, NULL);
|
||
|
g_object_unref(G_OBJECT(pix));
|
||
|
if (pix != NULL) {
|
||
|
g_object_unref(G_OBJECT(pix));
|
||
|
}
|
||
|
if (VUT_UTYPE == target.kind) {
|
||
|
free_sprite(sprite);
|
||
|
}
|
||
| client/gui-gtk-5.0/wldlg.c | ||
|---|---|---|
|
}
|
||
|
pix = sprite_get_pixbuf(sprite);
|
||
|
g_object_set(rend, "pixbuf", pix, NULL);
|
||
|
g_object_unref(G_OBJECT(pix));
|
||
|
if (pix != NULL) {
|
||
|
g_object_unref(G_OBJECT(pix));
|
||
|
}
|
||
|
if (VUT_UTYPE == target.kind) {
|
||
|
free_sprite(sprite);
|
||
|
}
|
||