From: Carsten Haitzler Date: Sat, 15 Oct 2005 08:46:36 +0000 (+0000) Subject: make rememebr a bit more paranoid X-Git-Tag: submit/efl/20131021.015651~14747 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f1a4bf90963e5272f8137acdc10f69d99ae57bd7;p=platform%2Fupstream%2Fenlightenment.git make rememebr a bit more paranoid SVN revision: 17565 --- diff --git a/src/bin/e_remember.c b/src/bin/e_remember.c index 076936c..4ccf785 100644 --- a/src/bin/e_remember.c +++ b/src/bin/e_remember.c @@ -65,14 +65,15 @@ void e_remember_unuse(E_Remember *rem) { rem->used_count--; - if ((rem->used_count <= 0) && (rem->delete_me)) + if ((rem->used_count == 0) && (rem->delete_me)) _e_remember_free(rem); } void e_remember_del(E_Remember *rem) { - if (rem->used_count > 0) + if (rem->delete_me) return; + if (rem->used_count != 0) { rem->delete_me = 1; return;