[gnome-commander] Fix memory leak in GnomeCmdPlainPath
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Fix memory leak in GnomeCmdPlainPath
- Date: Mon, 22 Aug 2016 19:48:34 +0000 (UTC)
commit c21a89f8dbb13bae7c16441266c4cf0b1faae165
Author: Eric R. Schulz <eric ers35 com>
Date: Wed Aug 17 21:17:40 2016 -0400
Fix memory leak in GnomeCmdPlainPath
Define the base class destructor as virtual so the derived class
destructor is called when delete is called on an instance of the
derived class through a base class pointer.
src/gnome-cmd-path.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-path.h b/src/gnome-cmd-path.h
index bbb4bc3..c1baa88 100644
--- a/src/gnome-cmd-path.h
+++ b/src/gnome-cmd-path.h
@@ -30,6 +30,7 @@ struct GnomeCmdPath
public:
GnomeCmdPath *clone() const { return do_clone(); }
+ virtual ~GnomeCmdPath() { }
virtual const gchar *get_path() = 0;
virtual const gchar *get_display_path() = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]