Now uses the new BMessageRunner form when built for Haiku, and thus, no longer

leaks them.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16731 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-03-12 12:33:56 +00:00
parent 43d7fe9753
commit 56d17f07b9

View File

@ -532,6 +532,11 @@ MimeTypeListView::MessageReceived(BMessage* message)
BMessage addType(kMsgAddType);
addType.AddString("type", type);
#ifdef __HAIKU
BMessageRunner runner(this, &addType, 200000ULL, 1, true);
if (runner.InitCheck() != B_OK)
_AddNewType(type);
#else
// TODO: free runner again!
BMessageRunner* runner = new BMessageRunner(this, &addType,
200000ULL, 1);
@ -539,6 +544,7 @@ MimeTypeListView::MessageReceived(BMessage* message)
delete runner;
_AddNewType(type);
}
#endif
break;
}
case B_MIME_TYPE_DELETED: