Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
d69b30a8
Kaydet (Commit)
d69b30a8
authored
Nis 02, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1019376 Resource leak
Change-Id: Ifa9c5a7b3aa0d219e09fa3081e66d870a508a84d
üst
0978c495
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
pyuno_impl.hxx
pyuno/source/module/pyuno_impl.hxx
+3
-0
pyuno_module.cxx
pyuno/source/module/pyuno_module.cxx
+6
-4
No files found.
pyuno/source/module/pyuno_impl.hxx
Dosyayı görüntüle @
d69b30a8
...
...
@@ -51,6 +51,8 @@
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/weakref.hxx>
#include <osl/module.hxx>
// In Python 3, the PyString_* functions have been replaced by PyBytes_*
// and PyUnicode_* functions.
#if PY_MAJOR_VERSION >= 3
...
...
@@ -276,6 +278,7 @@ struct RuntimeCargo
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
script
::
XInvocationAdapterFactory2
>
xAdapterFactory
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
beans
::
XIntrospection
>
xIntrospection
;
PyRef
dictUnoModule
;
osl
::
Module
testModule
;
bool
valid
;
ExceptionClassMap
exceptionMap
;
ClassSet
interfaceSet
;
...
...
pyuno/source/module/pyuno_module.cxx
Dosyayı görüntüle @
d69b30a8
...
...
@@ -346,11 +346,13 @@ static PyObject* initPoniesMode(
.
replaceAll
(
OString
(
'/'
),
OString
(
'\\'
))
#endif
;
oslModule
const
mod
(
osl_loadModuleAscii
(
libname
.
getStr
(),
SAL_LOADMODULE_LAZY
|
SAL_LOADMODULE_GLOBAL
)
);
if
(
!
mod
)
{
abort
();
}
osl
::
Module
&
mod
=
runtime
.
getImpl
()
->
cargo
->
testModule
;
mod
.
load
(
OStringToOUString
(
libname
,
osl_getThreadTextEncoding
()),
SAL_LOADMODULE_LAZY
|
SAL_LOADMODULE_GLOBAL
);
if
(
!
mod
.
is
())
{
abort
();
}
oslGenericFunction
const
pFunc
(
osl_getAsciiFunctionSymbol
(
mod
,
"test_init"
));
mod
.
getFunctionSymbol
(
"test_init"
));
if
(
!
pFunc
)
{
abort
();
}
// guess casting pFunc is undefined behavior but don't see a better way
((
void
(
SAL_CALL
*
)(
XMultiServiceFactory
*
))
pFunc
)
(
xMSF
.
get
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment