summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2019-09-06 11:08:59 +0900
committerJunsuChoi <jsuya.choi@samsung.com>2019-09-06 11:08:59 +0900
commit35f188239aef0c770551c532b04c724509a63170 (patch)
tree016fc09b58c1ab69cf1ec82d06eef8c162c649af
parent17c6cabaa44a6fc03207321d97e7da9e03381971 (diff)
edje_edit: Prevent dangling pointer.
-rw-r--r--src/lib/edje/edje_edit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index eeb043ab33..ef58e91511 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -454,7 +454,11 @@ _edje_real_part_free(Edje *ed, Edje_Real_Part *rp)
454 rp->custom = NULL; 454 rp->custom = NULL;
455 } 455 }
456 456
457 free(rp->drag); 457 if (rp->drag)
458 {
459 free(rp->drag);
460 rp->drag = NULL;
461 }
458 462
459 if (rp->param2) free(rp->param2->set); 463 if (rp->param2) free(rp->param2->set);
460 eina_mempool_free(_edje_real_part_state_mp, rp->param2); 464 eina_mempool_free(_edje_real_part_state_mp, rp->param2);