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
e99b540d
Kaydet (Commit)
e99b540d
authored
Ock 26, 2013
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sdremote: kill memory corruption / mis-matched alloc/free's.
Change-Id: I253f28d7c83371282adde86c8eaadd6f25beff5a
üst
bfe49bf5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
BluetoothServer.cxx
sd/source/ui/remotecontrol/BluetoothServer.cxx
+3
-3
No files found.
sd/source/ui/remotecontrol/BluetoothServer.cxx
Dosyayı görüntüle @
e99b540d
...
...
@@ -127,7 +127,7 @@ bool BluetoothServer::isDiscoverable()
return
false
;
}
GHashTable
*
aProperties
;
GHashTable
*
aProperties
=
NULL
;
aResult
=
dbus_g_proxy_call
(
aAdapter
,
"GetProperties"
,
&
aError
,
G_TYPE_INVALID
,
DBUS_TYPE_G_STRING_ANY_HASHTABLE
,
&
aProperties
,
...
...
@@ -144,7 +144,7 @@ bool BluetoothServer::isDiscoverable()
gboolean
aIsDiscoverable
=
g_value_get_boolean
(
(
GValue
*
)
g_hash_table_lookup
(
aProperties
,
"Discoverable"
)
);
g_
free
(
aProperties
);
g_
hash_table_unref
(
aProperties
);
return
aIsDiscoverable
;
#else // defined(LINUX) && defined(ENABLE_DBUS)
return
false
;
...
...
@@ -196,7 +196,7 @@ void BluetoothServer::setDiscoverable( bool aDiscoverable )
gboolean
aPowered
=
g_value_get_boolean
(
(
GValue
*
)
g_hash_table_lookup
(
aProperties
,
"Powered"
)
);
g_
free
(
aProperties
);
g_
hash_table_unref
(
aProperties
);
if
(
!
aPowered
)
{
SAL_INFO
(
"sdremote.bluetooth"
,
"Bluetooth adapter not powered, returning"
);
...
...
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