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
6e132589
Kaydet (Commit)
6e132589
authored
Eki 03, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
CID#735395 potential memory leak
Change-Id: Ica07e23920d751757ab5d14d5216615d5fcdbfd9
üst
327701f6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
9 deletions
+14
-9
cursor.hxx
starmath/inc/cursor.hxx
+1
-2
visitors.hxx
starmath/inc/visitors.hxx
+6
-3
caret.cxx
starmath/source/caret.cxx
+1
-2
cursor.cxx
starmath/source/cursor.cxx
+1
-2
visitors.cxx
starmath/source/visitors.cxx
+5
-0
No files found.
starmath/inc/cursor.hxx
Dosyayı görüntüle @
6e132589
...
...
@@ -90,8 +90,7 @@ public:
~
SmCursor
(){
SetClipboard
();
if
(
pGraph
)
delete
pGraph
;
delete
pGraph
;
pGraph
=
NULL
;
}
...
...
starmath/inc/visitors.hxx
Dosyayı görüntüle @
6e132589
...
...
@@ -318,7 +318,7 @@ class SmCaretPosGraphBuildingVisitor : public SmVisitor
public
:
/** Builds a caret position graph for pRootNode */
SmCaretPosGraphBuildingVisitor
(
SmNode
*
pRootNode
);
virtual
~
SmCaretPosGraphBuildingVisitor
()
{}
virtual
~
SmCaretPosGraphBuildingVisitor
()
;
void
Visit
(
SmTableNode
*
pNode
);
void
Visit
(
SmBraceNode
*
pNode
);
void
Visit
(
SmBracebodyNode
*
pNode
);
...
...
@@ -346,8 +346,11 @@ public:
void
Visit
(
SmRootSymbolNode
*
pNode
);
void
Visit
(
SmRectangleNode
*
pNode
);
void
Visit
(
SmVerticalBraceNode
*
pNode
);
SmCaretPosGraph
*
Graph
(
){
return
pGraph
;
SmCaretPosGraph
*
takeGraph
()
{
SmCaretPosGraph
*
pRet
=
pGraph
;
pGraph
=
0
;
return
pRet
;
}
private
:
SmCaretPosGraphEntry
*
pRightMost
;
...
...
starmath/source/caret.cxx
Dosyayı görüntüle @
6e132589
...
...
@@ -39,8 +39,7 @@ SmCaretPosGraphEntry* SmCaretPosGraph::Add(SmCaretPosGraphEntry entry){
}
SmCaretPosGraph
::~
SmCaretPosGraph
(){
if
(
pNext
)
delete
pNext
;
delete
pNext
;
pNext
=
NULL
;
}
...
...
starmath/source/cursor.cxx
Dosyayı görüntüle @
6e132589
...
...
@@ -120,10 +120,9 @@ void SmCursor::BuildGraph(){
anchor
=
NULL
;
position
=
NULL
;
}
pGraph
=
NULL
;
//Build the new graph
pGraph
=
SmCaretPosGraphBuildingVisitor
(
pTree
).
Graph
();
pGraph
=
SmCaretPosGraphBuildingVisitor
(
pTree
).
take
Graph
();
//Restore anchor and position pointers
if
(
_anchor
.
IsValid
()
||
_position
.
IsValid
()){
...
...
starmath/source/visitors.cxx
Dosyayı görüntüle @
6e132589
...
...
@@ -990,6 +990,11 @@ SmCaretPosGraphBuildingVisitor::SmCaretPosGraphBuildingVisitor( SmNode* pRootNod
pRootNode
->
Accept
(
this
);
}
SmCaretPosGraphBuildingVisitor
::~
SmCaretPosGraphBuildingVisitor
()
{
delete
pGraph
;
}
void
SmCaretPosGraphBuildingVisitor
::
Visit
(
SmLineNode
*
pNode
){
SmNodeIterator
it
(
pNode
);
while
(
it
.
Next
(
)
){
...
...
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