Ticket #10361: 0001-Coverity-CID-1130510-fixed-use-after-free-bug.patch

File 0001-Coverity-CID-1130510-fixed-use-after-free-bug.patch, 783 bytes (added by Mrowqa, 11 years ago)
  • src/apps/haiku-depot/PackageManager.cpp

    From 4ab170fd241262bb06492f9bb065133ffbb018a2 Mon Sep 17 00:00:00 2001
    From: Mrowqa <artur.jamro@gmail.com>
    Date: Wed, 1 Jan 2014 20:39:28 +0100
    Subject: [PATCH] Coverity CID 1130510: fixed 'use after free' bug
    
    ---
     src/apps/haiku-depot/PackageManager.cpp | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/src/apps/haiku-depot/PackageManager.cpp b/src/apps/haiku-depot/PackageManager.cpp
    index 8044270..355b4d2 100644
    a b public:  
    137137            return B_ERROR;;
    138138        }
    139139
    140         fPackageManager->RemoveProgressListener(this);
    141 
    142140        _SetDownloadedPackagesState(ACTIVATED);
    143141
     142        fPackageManager->RemoveProgressListener(this);
     143
    144144        return B_OK;
    145145    }
    146146