Changeset 516c27e


Ignore:
Timestamp:
Mar 1, 2010, 8:15:51 PM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
80b5c42
Parents:
91634ec
git-author:
Anders Kaseorg <andersk@mit.edu> (02/27/10 22:43:17)
git-committer:
Anders Kaseorg <andersk@mit.edu> (03/01/10 20:15:51)
Message:
Add owl_style_delete to fix leaks.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Alejandro R. Sedeño <asedeno@mit.edu>
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • global.c

    ra999d9e r516c27e  
    891891    g->current_view.style = s;
    892892  owl_dict_insert_element(&(g->styledict), owl_style_get_name(s),
    893                           s, (void(*)(void*))owl_style_free);
     893                          s, (void (*)(void *))owl_style_delete);
    894894}
    895895
  • style.c

    rfde6d80 r516c27e  
    9292  SvREFCNT_dec(s->perlobj);
    9393}
     94
     95void owl_style_delete(owl_style *s)
     96{
     97  owl_style_free(s);
     98  owl_free(s);
     99}
Note: See TracChangeset for help on using the changeset viewer.