[grilo] [test-ui] Fixed leaks because of unnecesary string duppings.
- From: Iago Toral Quiroga <itoral src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] [test-ui] Fixed leaks because of unnecesary string duppings.
- Date: Mon, 14 Jun 2010 15:04:43 +0000 (UTC)
commit 46e8997b17f502462856af9a52aa68c09e9d4756
Author: Iago Toral Quiroga <itoral igalia com>
Date: Tue Jun 1 17:01:03 2010 +0200
[test-ui] Fixed leaks because of unnecesary string duppings.
tools/grilo-test-ui/main.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/tools/grilo-test-ui/main.c b/tools/grilo-test-ui/main.c
index 5e231e0..7e81563 100644
--- a/tools/grilo-test-ui/main.c
+++ b/tools/grilo-test-ui/main.c
@@ -1093,7 +1093,7 @@ query_combo_setup (void)
FALSE);
while (sources[i]) {
gchar *name =
- g_strdup (grl_metadata_source_get_name (GRL_METADATA_SOURCE (sources[i])));
+ grl_metadata_source_get_name (GRL_METADATA_SOURCE (sources[i]));
gtk_list_store_append (GTK_LIST_STORE (view->query_combo_model), &iter);
gtk_list_store_set (GTK_LIST_STORE (view->query_combo_model),
&iter,
@@ -1129,7 +1129,7 @@ search_combo_setup (void)
FALSE);
while (sources[i]) {
gchar *name =
- g_strdup (grl_metadata_source_get_name (GRL_METADATA_SOURCE (sources[i])));
+ grl_metadata_source_get_name (GRL_METADATA_SOURCE (sources[i]));
gtk_list_store_append (GTK_LIST_STORE (view->search_combo_model), &iter);
gtk_list_store_set (GTK_LIST_STORE (view->search_combo_model),
&iter,
@@ -1437,8 +1437,7 @@ show_plugins ()
gchar *name;
GdkPixbuf *icon;
icon = load_icon (GTK_STOCK_DIRECTORY);
- name =
- g_strdup (grl_metadata_source_get_name (GRL_METADATA_SOURCE (sources[i])));
+ name = grl_metadata_source_get_name (GRL_METADATA_SOURCE (sources[i]));
g_debug ("Loaded source: '%s'", name);
gtk_list_store_append (GTK_LIST_STORE (view->browser_model), &iter);
gtk_list_store_set (GTK_LIST_STORE (view->browser_model),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]