Fix memory leak of RSExport* object create in processExport(). Now, they will
properly be freed after their associated RSContext was destroyed.
diff --git a/slang_rs_export_var.h b/slang_rs_export_var.h
index 543d53a..def4571 100644
--- a/slang_rs_export_var.h
+++ b/slang_rs_export_var.h
@@ -1,23 +1,24 @@
#ifndef _SLANG_COMPILER_RS_EXPORT_VAR_H
#define _SLANG_COMPILER_RS_EXPORT_VAR_H
+#include <string>
+
#include "llvm/ADT/StringRef.h"
#include "clang/AST/Decl.h"
#include "clang/AST/Expr.h"
-#include <string>
+#include "slang_rs_exportable.h"
namespace clang {
class APValue;
}
namespace slang {
-
class RSContext;
class RSExportType;
-class RSExportVar {
+class RSExportVar : public RSExportable {
friend class RSContext;
private:
RSContext *mContext;