Skip to content

Commit

Permalink
Fix second memory leak. Done by @apique
Browse files Browse the repository at this point in the history
  • Loading branch information
Nabellaleen committed Oct 18, 2013
1 parent 7128b45 commit 3613adc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace Sass {
using std::endl;

Context::Context(Context::Data initializers)
: mem(Memory_Manager<AST_Node*>()),
: mem(Memory_Manager<AST_Node>()),
source_c_str (initializers.source_c_str()),
sources (vector<const char*>()),
include_paths (initializers.include_paths()),
Expand Down
2 changes: 1 addition & 1 deletion context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace Sass {
enum Output_Style { NESTED, EXPANDED, COMPACT, COMPRESSED, FORMATTED };

struct Context {
Memory_Manager<AST_Node*> mem;
Memory_Manager<AST_Node> mem;

const char* source_c_str;
vector<const char*> sources; // c-strs containing Sass file contents
Expand Down

0 comments on commit 3613adc

Please sign in to comment.