summaryrefslogtreecommitdiff
path: root/legacy/ethumb/src/lib/client/ethumb_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/ethumb/src/lib/client/ethumb_client.c')
-rw-r--r--legacy/ethumb/src/lib/client/ethumb_client.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/legacy/ethumb/src/lib/client/ethumb_client.c b/legacy/ethumb/src/lib/client/ethumb_client.c
index ad7f083b81..77dbbd8134 100644
--- a/legacy/ethumb/src/lib/client/ethumb_client.c
+++ b/legacy/ethumb/src/lib/client/ethumb_client.c
@@ -67,7 +67,6 @@
67 67
68#include <stdio.h> 68#include <stdio.h>
69#include <stdlib.h> 69#include <stdlib.h>
70#include <assert.h>
71#include <limits.h> 70#include <limits.h>
72#include <string.h> 71#include <string.h>
73#include <unistd.h> 72#include <unistd.h>
@@ -254,8 +253,8 @@ _ethumb_async_delete(void *data)
254{ 253{
255 Ethumb_Async_Exists *async = data; 254 Ethumb_Async_Exists *async = data;
256 255
257 assert(async->callbacks == NULL); 256 EINA_SAFETY_ON_FALSE_RETURN(async->callbacks == NULL);
258 assert(async->thread == NULL); 257 EINA_SAFETY_ON_FALSE_RETURN(async->thread == NULL);
259 258
260 ethumb_free(async->dup); 259 ethumb_free(async->dup);
261 eina_stringshare_del(async->path); 260 eina_stringshare_del(async->path);
@@ -2058,7 +2057,7 @@ _ethumb_client_thumb_finish(void *data,
2058{ 2057{
2059 Ethumb_Client_Async *async = data; 2058 Ethumb_Client_Async *async = data;
2060 2059
2061 assert(async->id == id); 2060 EINA_SAFETY_ON_FALSE_RETURN(async->id == id);
2062 2061
2063 if (success) 2062 if (success)
2064 { 2063 {
@@ -2118,7 +2117,7 @@ _ethumb_client_thumb_exists(void *data, Ethumb_Client *client, Ethumb_Exists *re
2118 if (request == NULL) 2117 if (request == NULL)
2119 return; 2118 return;
2120 2119
2121 assert(async->exists == request); 2120 EINA_SAFETY_ON_FALSE_RETURN(async->exists == request);
2122 2121
2123 async->exists = NULL; 2122 async->exists = NULL;
2124 pending = eina_list_remove(pending, async); 2123 pending = eina_list_remove(pending, async);