summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 5a35b3940..834d1999f 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -1663,7 +1663,7 @@ void render_dc_vendor(GtkCellLayout *cell,
const char *vendor;
gtk_tree_model_get(model, iter, 0, &vendor, -1);
- g_object_set(renderer, "text", strdup(vendor), NULL);
+ g_object_set(renderer, "text", vendor, NULL);
}
void render_dc_product(GtkCellLayout *cell,
@@ -1677,7 +1677,7 @@ void render_dc_product(GtkCellLayout *cell,
gtk_tree_model_get(model, iter, 0, &descriptor, -1);
product = dc_descriptor_get_product(descriptor);
- g_object_set(renderer, "text", strdup(product), NULL);
+ g_object_set(renderer, "text", product, NULL);
}
static void dive_computer_selector_changed(GtkWidget *combo, gpointer data)