diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2012-01-08 09:00:38 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2012-01-08 09:00:38 +0000 |
| commit | 1c8127076573a338f2f66aa4fbb56588b62a1182 (patch) | |
| tree | 68b5f1d8aae7a741865e3e1c620c5d8b18df824e /src/path-chemistry.cpp | |
| parent | Fix pointer initialization (diff) | |
| download | inkscape-1c8127076573a338f2f66aa4fbb56588b62a1182.tar.gz inkscape-1c8127076573a338f2f66aa4fbb56588b62a1182.zip | |
Warning and uninitialized variable cleanup.
(bzr r10860)
Diffstat (limited to 'src/path-chemistry.cpp')
| -rw-r--r-- | src/path-chemistry.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
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 |
