Browse Source

* Fix memory leaks that slipped in here and there. We still have 100,000

fewer than Firefox, lol.
tags/v0.99.beta14
Sam Hocevar sam 17 years ago
parent
commit
a7debae6f9
4 changed files with 6 additions and 0 deletions
  1. +2
    -0
      cucul/cucul.c
  2. +1
    -0
      cxx/cxxtest.cpp
  3. +1
    -0
      test/event.c
  4. +2
    -0
      test/gamma.c

+ 2
- 0
cucul/cucul.c View File

@@ -128,6 +128,8 @@ int cucul_manage_canvas(cucul_canvas_t *cv, int (*callback)(void *), void *p)
return -1; return -1;
} }


cv->resize_callback = callback;
cv->resize_data = p;
cv->refcount = 1; cv->refcount = 1;


return 0; return 0;


+ 1
- 0
cxx/cxxtest.cpp View File

@@ -106,6 +106,7 @@ int main(int argc, char *argv[])
} }


delete dp; delete dp;
delete pig;
delete cv; delete cv;


return 0; return 0;


+ 1
- 0
test/event.c View File

@@ -111,6 +111,7 @@ int main(int argc, char **argv)
} }


/* Clean up */ /* Clean up */
free(events);
caca_free_display(dp); caca_free_display(dp);
cucul_free_canvas(cv); cucul_free_canvas(cv);




+ 2
- 0
test/gamma.c View File

@@ -122,6 +122,8 @@ int main(int argc, char *argv[])
cucul_free_dither(right); cucul_free_dither(right);


caca_free_display(dp); caca_free_display(dp);
cucul_free_canvas(mask);
cucul_free_canvas(cw);
cucul_free_canvas(cv); cucul_free_canvas(cv);


return 0; return 0;


Loading…
Cancel
Save