From 1c8127076573a338f2f66aa4fbb56588b62a1182 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Sun, 8 Jan 2012 01:00:38 -0800 Subject: Warning and uninitialized variable cleanup. (bzr r10860) --- src/path-chemistry.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/path-chemistry.cpp') diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp index f1ad17857..11334c651 100644 --- a/src/path-chemistry.cpp +++ b/src/path-chemistry.cpp @@ -343,20 +343,21 @@ void sp_selected_to_lpeitems(SPDesktop *desktop) return; } - bool did = false; - GSList *selected = g_slist_copy((GSList *) selection->itemList()); GSList *to_select = NULL; selection->clear(); GSList *items = g_slist_copy(selected); - did = sp_item_list_to_curves(items, &selected, &to_select, true); + sp_item_list_to_curves(items, &selected, &to_select, true); - g_slist_free (items); + g_slist_free(items); + items = 0; selection->setReprList(to_select); selection->addList(selected); - g_slist_free (to_select); - g_slist_free (selected); + g_slist_free(to_select); + to_select = 0; + g_slist_free(selected); + selected = 0; } bool -- cgit v1.2.3