From 5d7db2d67b65963955beb05d30184ac28d898ddb Mon Sep 17 00:00:00 2001 From: Sean Fox Date: Thu, 26 Jun 2008 23:47:31 +0000 Subject: Minor corrections; lib caller must now free gif_data svn path=/branches/dynis/libnsgif/; revision=4459 --- libnsgif.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libnsgif.c') diff --git a/libnsgif.c b/libnsgif.c index 2616949..0219def 100644 --- a/libnsgif.c +++ b/libnsgif.c @@ -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 @@ void gif_finalise(gif_animation *gif) { gif->local_colour_table = NULL; free(gif->global_colour_table); gif->global_colour_table = NULL; - free(gif->gif_data); - gif->gif_data = NULL; } /** -- cgit v1.2.3