Paulo Jorge de Oliveira Cantante de Matos <[EMAIL PROTECTED]> [2005-07-29
21:43]:
> Hi all,
Hi,
> Anyway I've chosen a directory were I keep my images and entice
> segfaults (probably trying to create thumbnail of a tar.bz2
> file):
>
> $ entice fotos/
> Segmentation fault
> ***** Imlib2 Developer Warning ***** :
> This program is calling the Imlib call:
>
> imlib_image_format();
>
> With the parameter:
>
> image
>
> being NULL. Please fix your program.
> Unable to thumbnail fotos//fotos-escalada-31Mar2005.tar.bz2
Does the attached patch fix the Imlib warning?
Regards,
Tilman
--
learn to quote: http://www.netmeister.org/news/learn2quote.html
? config.guess
? config.sub
? ltmain.sh
Index: src/lib/Epsilon.c
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/epsilon/src/lib/Epsilon.c,v
retrieving revision 1.14
diff -u -r1.14 Epsilon.c
--- src/lib/Epsilon.c 20 Jul 2005 02:02:32 -0000 1.14
+++ src/lib/Epsilon.c 30 Jul 2005 10:40:00 -0000
@@ -524,11 +524,16 @@
if (!tmp)
- {
- tmp = imlib_load_image_immediately_without_cache (e->src);
+ tmp = imlib_load_image_immediately_without_cache (e->src);
+
+ if (!tmp)
+ {
+ if (ee) ecore_evas_free(ee);
+ return EPSILON_FAIL;
+ }
+
imlib_context_set_image (tmp);
snprintf (format, 32, "image/%s", imlib_image_format ());
- }
if (tmp)
{