diff options
-rw-r--r-- | apt-pkg/contrib/error.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/contrib/error.cc b/apt-pkg/contrib/error.cc index e036f9aed..3c397eaf8 100644 --- a/apt-pkg/contrib/error.cc +++ b/apt-pkg/contrib/error.cc @@ -34,8 +34,8 @@ // Global Error Object /*{{{*/ GlobalError *_GetErrorObj() { - static thread_local GlobalError *Obj = new GlobalError; - return Obj; + static thread_local GlobalError Obj; + return &Obj; } /*}}}*/ // GlobalError::GlobalError - Constructor /*{{{*/ |