Changeset 5e8bec6


Ignore:
Timestamp:
Mar 1, 2010, 8:33:50 PM (10 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
release-1.5
Children:
c4d1f12
Parents:
a96b109
git-author:
Anders Kaseorg <andersk@mit.edu> (02/27/10 22:43:17)
git-committer:
Nelson Elhage <nelhage@mit.edu> (03/01/10 20:33:50)
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

    rb752f1e r5e8bec6  
    854854    g->current_view.style = s;
    855855  owl_dict_insert_element(&(g->styledict), owl_style_get_name(s),
    856                           s, (void(*)(void*))owl_style_free);
     856                          s, (void (*)(void *))owl_style_delete);
    857857}
    858858
  • style.c

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