[gimp/metadata-browser: 37/45] No need to free strings in a treemodel.



commit 893f9906187a25b3967f2cdd7731c3b97c76ab55
Author: Roman Joost <roman bromeco de>
Date:   Wed Oct 5 20:43:20 2011 +1000

    No need to free strings in a treemodel.
    
    According to the documentation the strings are freed automatically.

 plug-ins/metadata/interface.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/plug-ins/metadata/interface.c b/plug-ins/metadata/interface.c
index e750d07..1bca7c9 100644
--- a/plug-ins/metadata/interface.c
+++ b/plug-ins/metadata/interface.c
@@ -77,14 +77,9 @@ tree_value_edited (GtkCellRendererText *cell,
   GtkTreeModel *model = data;
   GtkTreePath  *path  = gtk_tree_path_new_from_string (path_string);
   GtkTreeIter   iter;
-  gchar        *old_text;
 
   gtk_tree_model_get_iter (model, &iter, path);
-  gtk_tree_model_get (model, &iter, COL_XMP_VALUE, &old_text, -1);
-  g_free (old_text);
 
-  /* FIXME: update value[] array */
-  /* FIXME: check widget xref and update other widget if not NULL */
   gtk_tree_store_set (GTK_TREE_STORE (model), &iter,
                       COL_XMP_VALUE, new_text,
                       -1);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]