[edje/edje_program] Checking walking_callbacks for not removing patterns which are...
authorWooHyun Jung <woohyun0705@gmail.com>
Thu, 7 Feb 2013 05:36:47 +0000 (05:36 +0000)
committerWooHyun Jung <woohyun0705@gmail.com>
Thu, 7 Feb 2013 05:36:47 +0000 (05:36 +0000)
SVN revision: 83700

ChangeLog
src/lib/edje/edje_program.c

index ffa5bbc..ec2e47a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-02-07  WooHyun Jung
+
+       * edje: Checking walking_callbacks for not removing patterns which are still used.
+
 2013-02-06  Cedric Bail
 
        * eina: fix map leak in Eina_File.
index e4d9e81..30b2ae5 100644 (file)
@@ -1282,6 +1282,8 @@ static Eina_Bool _edje_glob_callback(Edje_Program *pr, void *dt)
 void
 _edje_callbacks_patterns_clean(Edje *ed)
 {
+   if (ed->walking_callbacks > 0) return;
+
    _edje_signals_sources_patterns_clean(&ed->patterns.callbacks);
 
    eina_rbtree_delete(ed->patterns.callbacks.exact_match,