~mc-return/unity/unity.merge-fix1069243-update-manual-tests

« back to all changes in this revision

Viewing changes to plugins/unity-mt-grab-handles/src/unity-mt-texture.cpp

Fix reference counting problem which leads to memory leaks and a crash in MT grab handles.. Fixes: https://bugs.launchpad.net/bugs/1046201. Approved by Marco Trevisan (Treviño), Łukasz Zemczak.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
#include "unity-mt-texture.h"
20
20
 
21
 
boost::shared_ptr <unity::MT::Texture::Factory> unity::MT::Texture::Factory::mDefault;
 
21
std::shared_ptr <unity::MT::Texture::Factory> unity::MT::Texture::Factory::mDefault;
22
22
 
23
23
unity::MT::Texture::Factory::Factory ()
24
24
{
34
34
  mDefault.reset (f);
35
35
}
36
36
 
37
 
boost::shared_ptr <unity::MT::Texture::Factory>
 
37
std::shared_ptr <unity::MT::Texture::Factory>
38
38
unity::MT::Texture::Factory::Default ()
39
39
{
40
40
  return mDefault;