summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c b/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
index d4ea28659c..ea19f2d122 100644
--- a/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
+++ b/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
@@ -2466,14 +2466,11 @@ evas_vg_load_file_open_svg(Eina_File *file,
2466 defs = loader.doc->node.doc.defs; 2466 defs = loader.doc->node.doc.defs;
2467 if (defs) 2467 if (defs)
2468 _update_gradient(loader.doc, defs->node.defs.gradients); 2468 _update_gradient(loader.doc, defs->node.defs.gradients);
2469 else 2469 if (loader.gradients)
2470 { 2470 {
2471 if (loader.gradients) 2471 Eina_List* gradient_list = loader.gradients;
2472 { 2472 _update_gradient(loader.doc, gradient_list);
2473 Eina_List* gradient_list = loader.gradients; 2473 eina_list_free(gradient_list);
2474 _update_gradient(loader.doc, gradient_list);
2475 eina_list_free(gradient_list);
2476 }
2477 } 2474 }
2478 2475
2479 *error = EVAS_LOAD_ERROR_NONE; 2476 *error = EVAS_LOAD_ERROR_NONE;