Lines 37-42
Link Here
|
37 |
#include "com/sun/star/uno/RuntimeException.hpp" |
37 |
#include "com/sun/star/uno/RuntimeException.hpp" |
38 |
#include <uno/data.h> |
38 |
#include <uno/data.h> |
39 |
#include <typelib/typedescription.hxx> |
39 |
#include <typelib/typedescription.hxx> |
|
|
40 |
#include <rtl/alloc.h> |
40 |
|
41 |
|
41 |
#include "bridges/cpp_uno/shared/bridge.hxx" |
42 |
#include "bridges/cpp_uno/shared/bridge.hxx" |
42 |
#include "bridges/cpp_uno/shared/cppinterfaceproxy.hxx" |
43 |
#include "bridges/cpp_uno/shared/cppinterfaceproxy.hxx" |
Lines 423-430
Link Here
|
423 |
char * bridges::cpp_uno::shared::VtableFactory::createBlock( |
424 |
char * bridges::cpp_uno::shared::VtableFactory::createBlock( |
424 |
sal_Int32 slotCount, void *** slots) |
425 |
sal_Int32 slotCount, void *** slots) |
425 |
{ |
426 |
{ |
426 |
char * block = new char[ |
427 |
char * block = (char *)::rtl_allocateMemory( |
427 |
(slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize]; |
428 |
(slotCount + 2) * sizeof (void *) + slotCount * codeSnippetSize); |
428 |
*slots = mapBlockToVtable(block); |
429 |
*slots = mapBlockToVtable(block); |
429 |
(*slots)[-2] = 0; |
430 |
(*slots)[-2] = 0; |
430 |
(*slots)[-1] = 0; |
431 |
(*slots)[-1] = 0; |