aboutsummaryrefslogtreecommitdiffhomepage
path: root/symbols.h
diff options
context:
space:
mode:
Diffstat (limited to 'symbols.h')
-rw-r--r--symbols.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/symbols.h b/symbols.h
index a603b3b..1c48ddf 100644
--- a/symbols.h
+++ b/symbols.h
@@ -14,9 +14,16 @@ private:
const Entry *entries;
gint size;
+ /* for auto-completions */
+ GList *list;
+
public:
SymbolList(const Entry *_entries = NULL, gint _size = 0)
- : entries(_entries), size(_size) {}
+ : entries(_entries), size(_size), list(NULL) {}
+ ~SymbolList()
+ {
+ g_list_free(list);
+ }
gint lookup(const gchar *name, const gchar *prefix = "",
bool case_sensitive = false);