Fix memleak
authorNikolas Garofil <garo@dunaldi.garofil.be>
Mon, 9 Nov 2009 23:15:30 +0000 (00:15 +0100)
committerNikolas Garofil <garo@dunaldi.garofil.be>
Mon, 9 Nov 2009 23:15:30 +0000 (00:15 +0100)
src/core.c

index eef425d..08b68fa 100644 (file)
@@ -1608,6 +1608,7 @@ void free_text_objects(struct text_object *root, int internal)
                                break;
 #endif /* X11 */
                }
+               if(obj->special_data) free(obj->special_data);
                free(obj);
        }
 #undef data