Author: dynis
Date: Thu Jun 26 18:47:31 2008
New Revision: 4459
URL:
http://source.netsurf-browser.org?rev=4459&view=rev
Log:
Minor corrections; lib caller must now free gif_data
Modified:
branches/dynis/libnsgif/examples/decode_gif.c
branches/dynis/libnsgif/libnsgif.c
Modified: branches/dynis/libnsgif/examples/decode_gif.c
URL:
http://source.netsurf-browser.org/branches/dynis/libnsgif/examples/decode...
==============================================================================
--- branches/dynis/libnsgif/examples/decode_gif.c (original)
+++ branches/dynis/libnsgif/examples/decode_gif.c Thu Jun 26 18:47:31 2008
@@ -48,7 +48,7 @@
};
gif_animation gif;
size_t size;
- int code;
+ gif_result code;
unsigned int i;
if (argc != 2) {
@@ -151,7 +151,7 @@
}
-void warning(const char *context, int code)
+void warning(const char *context, gif_result code)
{
fprintf(stderr, "%s failed: ", context);
switch (code)
Modified: branches/dynis/libnsgif/libnsgif.c
URL:
http://source.netsurf-browser.org/branches/dynis/libnsgif/libnsgif.c?rev=...
==============================================================================
--- branches/dynis/libnsgif/libnsgif.c (original)
+++ branches/dynis/libnsgif/libnsgif.c Thu Jun 26 18:47:31 2008
@@ -59,7 +59,8 @@
or perform the check itself.
It should be noted that gif_finalise() should always be called, even if
- no frames were initialised.
+ no frames were initialised. Additionally, it is the responsibility of
+ the caller to free 'gif_data'.
[rjw] - Fri 2nd April 2004
*/
@@ -1100,8 +1101,6 @@
gif->local_colour_table = NULL;
free(gif->global_colour_table);
gif->global_colour_table = NULL;
- free(gif->gif_data);
- gif->gif_data = NULL;
}
/**