I modified my code to call waitpid, but the problem still existed. Then, I tried another option: calling proper wrapped zlib (zzip lib), the result is the same.
Now, I have another guess: the problem might come from the GtkWidget and GdkPixbuf that I used to load and store image. It might because the old one is not cleared when I create a new one, even though I always re-use the same pointers to point to GtkWidget and GdkPixbuf.
Oh! I love Java. When I set a pointer or object to null, JVM will collect garbage automatically for me.
|