fix invalid free in if_up
authorNikolas Garofil <garo@dunaldi.garofil.be>
Sun, 15 Nov 2009 22:45:33 +0000 (23:45 +0100)
committerNikolas Garofil <garo@dunaldi.garofil.be>
Sun, 15 Nov 2009 22:45:33 +0000 (23:45 +0100)
src/core.c

index 637c28d..be3fb2a 100644 (file)
@@ -1766,7 +1766,7 @@ void free_text_objects(struct text_object *root, int internal)
                                break;
 #endif /* X11 */
                }
-               if(obj->special_data) free(obj->special_data);
+               if(obj->type != OBJ_if_up && obj->special_data) free(obj->special_data);
                free(obj);
        }
 #undef data