X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Ftext-data-import-dialog.c;h=ec62ac0e673e0b87a005e872a4015622a03fab66;hb=refs%2Fbuilds%2F20120610000508%2Fpspp;hp=10dc626609a467f961e04f14a552f871ccea1549;hpb=698f289d1ecf1620aa5429599f2e76db23cff452;p=pspp diff --git a/src/ui/gui/text-data-import-dialog.c b/src/ui/gui/text-data-import-dialog.c index 10dc626609..ec62ac0e67 100644 --- a/src/ui/gui/text-data-import-dialog.c +++ b/src/ui/gui/text-data-import-dialog.c @@ -213,7 +213,6 @@ static GtkTreeViewColumn *make_data_column (struct import_assistant *, gint column_idx); static GtkTreeView *create_data_tree_view (bool input, GtkContainer *parent, struct import_assistant *); -static char *escape_underscores (const char *in); static void push_watch_cursor (struct import_assistant *); static void pop_watch_cursor (struct import_assistant *); @@ -1078,6 +1077,7 @@ set_quote_list (GtkComboBoxEntry *cb) } gtk_combo_box_set_model (GTK_COMBO_BOX (cb), GTK_TREE_MODEL (list)); + g_object_unref (list); gtk_combo_box_entry_set_text_column (cb, 0); } @@ -1955,6 +1955,7 @@ make_tree_view (const struct import_assistant *ia, g_object_set_data (G_OBJECT (model), "first-line", GINT_TO_POINTER (first_line)); gtk_tree_view_set_model (*tree_view, model); + g_object_unref (model); add_line_number_column (ia, *tree_view); } @@ -2088,24 +2089,6 @@ create_data_tree_view (bool input, GtkContainer *parent, return tree_view; } -static char * -escape_underscores (const char *in) -{ - char *out = xmalloc (2 * strlen (in) + 1); - char *p; - - p = out; - for (; *in != '\0'; in++) - { - if (*in == '_') - *p++ = '_'; - *p++ = *in; - } - *p = '\0'; - - return out; -} - /* Increments the "watch cursor" level, setting the cursor for the assistant window to a watch face to indicate to the user that the ongoing operation may take some time. */