barbieri pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=d52daf8dd7a09077409f71635bdebc803e627505

commit d52daf8dd7a09077409f71635bdebc803e627505
Author: Gustavo Sverzut Barbieri <barbi...@profusion.mobi>
Date:   Mon Dec 12 03:16:07 2016 -0200

    efl_net_dialer_http: fix reference check.
    
    With the last patch to fix delete-from-curl callback it went too much,
    considering it was always dead (in the test scenario it was, so it was
    "right"), but broke normal cases.
---
 src/lib/ecore_con/efl_net_dialer_http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore_con/efl_net_dialer_http.c 
b/src/lib/ecore_con/efl_net_dialer_http.c
index c44d629..eccfdee 100644
--- a/src/lib/ecore_con/efl_net_dialer_http.c
+++ b/src/lib/ecore_con/efl_net_dialer_http.c
@@ -818,7 +818,7 @@ _efl_net_dialer_http_curl_safe_end(Eo *o, 
Efl_Net_Dialer_Http_Data *pd, CURL *ea
    int refs;
 
    refs = efl_ref_get(o);
-   if (refs > 2)
+   if (refs >= 2)
      {
         pd->in_curl_callback--;
         efl_unref(o);

-- 


Reply via email to