mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00
clean up two small memory leaks.
This commit is contained in:
parent
5b9c4e9270
commit
766df5c770
@ -490,6 +490,7 @@ nsToolbarDragListener::DragDrop(nsIDOMEvent* aMouseEvent)
|
||||
delete [] buf;
|
||||
}
|
||||
}
|
||||
delete [] toolbarItemMime;
|
||||
}
|
||||
} // foreach drag item
|
||||
|
||||
|
@ -893,6 +893,8 @@ nsToolboxFrame::DragDrop(nsIDOMEvent* aMouseEvent)
|
||||
printf("Dropped: %s\n", stuffToPaste);
|
||||
dragSession->SetCanDrop(PR_TRUE);
|
||||
}
|
||||
|
||||
delete [] whichFlavor;
|
||||
}
|
||||
} // foreach drag item
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user