forked from enlightenment/efl
ethumb: assert to EINA_SAFETY
Patch by: José Roberto de Souza <zehortigoza@profusion.mobi> SVN revision: 82132
This commit is contained in:
parent
8114fff045
commit
0b73a337fa
|
@ -67,7 +67,6 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <assert.h>
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -254,8 +253,8 @@ _ethumb_async_delete(void *data)
|
||||||
{
|
{
|
||||||
Ethumb_Async_Exists *async = data;
|
Ethumb_Async_Exists *async = data;
|
||||||
|
|
||||||
assert(async->callbacks == NULL);
|
EINA_SAFETY_ON_FALSE_RETURN(async->callbacks == NULL);
|
||||||
assert(async->thread == NULL);
|
EINA_SAFETY_ON_FALSE_RETURN(async->thread == NULL);
|
||||||
|
|
||||||
ethumb_free(async->dup);
|
ethumb_free(async->dup);
|
||||||
eina_stringshare_del(async->path);
|
eina_stringshare_del(async->path);
|
||||||
|
@ -2058,7 +2057,7 @@ _ethumb_client_thumb_finish(void *data,
|
||||||
{
|
{
|
||||||
Ethumb_Client_Async *async = data;
|
Ethumb_Client_Async *async = data;
|
||||||
|
|
||||||
assert(async->id == id);
|
EINA_SAFETY_ON_FALSE_RETURN(async->id == id);
|
||||||
|
|
||||||
if (success)
|
if (success)
|
||||||
{
|
{
|
||||||
|
@ -2118,7 +2117,7 @@ _ethumb_client_thumb_exists(void *data, Ethumb_Client *client, Ethumb_Exists *re
|
||||||
if (request == NULL)
|
if (request == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
assert(async->exists == request);
|
EINA_SAFETY_ON_FALSE_RETURN(async->exists == request);
|
||||||
|
|
||||||
async->exists = NULL;
|
async->exists = NULL;
|
||||||
pending = eina_list_remove(pending, async);
|
pending = eina_list_remove(pending, async);
|
||||||
|
|
Loading…
Reference in New Issue