[gtranslator] Minor optimization
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator] Minor optimization
- Date: Sat, 30 Apr 2011 12:51:54 +0000 (UTC)
commit 2d22860e36241471c21b0f15def68b89646c442e
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sat Apr 30 14:52:37 2011 +0200
Minor optimization
src/gtr-view.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/gtr-view.c b/src/gtr-view.c
index 8242257..a0c0550 100644
--- a/src/gtr-view.c
+++ b/src/gtr-view.c
@@ -118,12 +118,10 @@ gtr_view_init (GtrView * view)
g_ptr_array_add (dirs, g_strdup (*temp));
ui_dir = g_build_filename (gtr_dirs_get_gtr_data_dir (), "ui", NULL);
- g_ptr_array_add (dirs, g_strdup (ui_dir));
+ g_ptr_array_add (dirs, ui_dir);
g_ptr_array_add (dirs, NULL);
langs = (gchar **) g_ptr_array_free (dirs, FALSE);
- g_free (ui_dir);
-
gtk_source_language_manager_set_search_path (lm, langs);
lang = gtk_source_language_manager_get_language (lm, "gtranslator");
g_strfreev (langs);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]