diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2012-04-09 07:28:40 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2012-04-09 07:28:40 +0000 |
| commit | 0f452943d7f90ba021cd16c8bafcfcb284268e09 (patch) | |
| tree | a9cb316aef2f1d117f45e147edb7c5ce81de3d59 /src/widgets/gradient-toolbar.cpp | |
| parent | LPE: enable "add effect" button for clones. It converts the clone to a path a... (diff) | |
| download | inkscape-0f452943d7f90ba021cd16c8bafcfcb284268e09.tar.gz inkscape-0f452943d7f90ba021cd16c8bafcfcb284268e09.zip | |
fix memory leak and some minor things
(bzr r11190)
Diffstat (limited to 'src/widgets/gradient-toolbar.cpp')
| -rw-r--r-- | src/widgets/gradient-toolbar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/gradient-toolbar.cpp b/src/widgets/gradient-toolbar.cpp index e5a3ab155..e239457fd 100644 --- a/src/widgets/gradient-toolbar.cpp +++ b/src/widgets/gradient-toolbar.cpp @@ -175,7 +175,6 @@ gboolean gr_vector_list(GtkWidget *combo_box, SPDesktop *desktop, bool selection gl = g_slist_reverse (gl); guint pos = 0; - guint idx = 0; if (!gl) { // The document has no gradients @@ -205,6 +204,7 @@ gboolean gr_vector_list(GtkWidget *combo_box, SPDesktop *desktop, bool selection sensitive = FALSE; } + guint idx = 0; while (gl) { SPGradient *gradient = SP_GRADIENT (gl->data); gl = g_slist_remove (gl, gradient); |
