malloc.h ain't no standard header. Small style change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27610 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -33,7 +33,7 @@ All rights reserved.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <Debug.h>
|
#include <Debug.h>
|
||||||
#include <malloc.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <AppFileInfo.h>
|
#include <AppFileInfo.h>
|
||||||
@@ -576,7 +576,7 @@ TBarApp::Unsubscribe(const BMessenger &subscriber)
|
|||||||
BMessenger *messenger = (BMessenger *)sSubscribers.ItemAt(i);
|
BMessenger *messenger = (BMessenger *)sSubscribers.ItemAt(i);
|
||||||
if (*messenger == subscriber) {
|
if (*messenger == subscriber) {
|
||||||
sSubscribers.RemoveItem(i);
|
sSubscribers.RemoveItem(i);
|
||||||
delete (messenger);
|
delete messenger;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -654,7 +654,7 @@ TBarApp::AddTeam(team_id team, uint32 flags, const char *sig, entry_ref *ref)
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
TBarApp::RemoveTeam(team_id team)
|
TBarApp::RemoveTeam(team_id team)
|
||||||
{
|
{
|
||||||
BAutolock autolock(sSubscriberLock);
|
BAutolock autolock(sSubscriberLock);
|
||||||
if (!autolock.IsLocked())
|
if (!autolock.IsLocked())
|
||||||
|
|||||||
Reference in New Issue
Block a user