Ticket #11291: mismatches.patch

File mismatches.patch, 972 bytes (added by Lioncash, 10 years ago)
  • src/apps/devices/ResourceUsageWindow.cpp

    From 9fb23e872e0b3ff992bc017edfec001f48f67ef5 Mon Sep 17 00:00:00 2001
    From: Lioncash <mathew1800@gmail.com>
    Date: Sat, 27 Sep 2014 13:58:26 -0400
    Subject: [PATCH] ResourceUsageWindow: Fix mismatching alloc/deallocs
    
    ---
     src/apps/devices/ResourceUsageWindow.cpp | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/src/apps/devices/ResourceUsageWindow.cpp b/src/apps/devices/ResourceUsageWindow.cpp
    index 0cc13fa..d7c9aa1 100644
    a b IRQDMAItem::IRQDMAItem(int32 number, const char* name)  
    5050
    5151IRQDMAItem::~IRQDMAItem()
    5252{
    53     delete fName;
     53    free(fName);
    5454}
    5555
    5656/***********************************************************
    RangeItem::RangeItem(uint32 lowAddress, uint32 highAddress, const char* name)  
    120120
    121121RangeItem::~RangeItem()
    122122{
    123     delete fName;
     123    free(fName);
    124124}
    125125
    126126/***********************************************************