Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
ac3c9134
Commit
ac3c9134
authored
Feb 19, 2010
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rt_xtt memory leakage fixed
parent
1a78906c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
45 additions
and
9 deletions
+45
-9
xtt/lib/flow/gtk/flow_browwidget_gtk.cpp
xtt/lib/flow/gtk/flow_browwidget_gtk.cpp
+10
-2
xtt/lib/flow/gtk/flow_widget_gtk.cpp
xtt/lib/flow/gtk/flow_widget_gtk.cpp
+9
-2
xtt/lib/ge/src/ge_dyn.cpp
xtt/lib/ge/src/ge_dyn.cpp
+11
-0
xtt/lib/ge/src/ge_dyn.h
xtt/lib/ge/src/ge_dyn.h
+2
-0
xtt/lib/glow/gtk/glow_growwidget_gtk.cpp
xtt/lib/glow/gtk/glow_growwidget_gtk.cpp
+10
-4
xtt/lib/glow/src/glow_ctx.cpp
xtt/lib/glow/src/glow_ctx.cpp
+1
-0
xtt/lib/xtt/gtk/xtt_xnav_gtk.cpp
xtt/lib/xtt/gtk/xtt_xnav_gtk.cpp
+2
-1
No files found.
xtt/lib/flow/gtk/flow_browwidget_gtk.cpp
View file @
ac3c9134
...
...
@@ -64,6 +64,7 @@ struct _BrowWidgetGtk {
gint
scroll_timerid
;
flow_sScroll
scroll_data
;
int
scroll_configure
;
int
destroyed
;
};
struct
_BrowWidgetGtkClass
{
...
...
@@ -349,8 +350,14 @@ static void browwidgetgtk_destroy( GtkObject *object)
{
BrowWidgetGtk
*
brow
=
(
BrowWidgetGtk
*
)
object
;
if
(
brow
->
scroll_timerid
)
g_source_remove
(
brow
->
scroll_timerid
);
if
(
!
brow
->
destroyed
)
{
if
(
brow
->
scroll_timerid
)
g_source_remove
(
brow
->
scroll_timerid
);
if
(
!
brow
->
is_navigator
)
delete
(
FlowDrawGtk
*
)
brow
->
draw_ctx
;
brow
->
destroyed
=
1
;
}
GTK_OBJECT_CLASS
(
browwidgetgtk_parent_class
)
->
destroy
(
object
);
}
...
...
@@ -383,6 +390,7 @@ GtkWidget *browwidgetgtk_new(
w
->
client_data
=
client_data
;
w
->
scroll_h
=
0
;
w
->
scroll_v
=
0
;
w
->
destroyed
=
0
;
return
(
GtkWidget
*
)
w
;
}
...
...
xtt/lib/flow/gtk/flow_widget_gtk.cpp
View file @
ac3c9134
...
...
@@ -64,6 +64,7 @@ struct _FlowWidgetGtk {
gint
scroll_timerid
;
flow_sScroll
scroll_data
;
int
scroll_configure
;
int
destroyed
;
};
struct
_FlowWidgetGtkClass
{
...
...
@@ -339,9 +340,14 @@ static void flowwidgetgtk_destroy( GtkObject *object)
{
FlowWidgetGtk
*
flow
=
(
FlowWidgetGtk
*
)
object
;
if
(
flow
->
scroll_timerid
)
g_source_remove
(
flow
->
scroll_timerid
);
if
(
!
flow
->
destroyed
)
{
if
(
flow
->
scroll_timerid
)
g_source_remove
(
flow
->
scroll_timerid
);
if
(
!
flow
->
is_navigator
)
delete
(
FlowDrawGtk
*
)
flow
->
draw_ctx
;
flow
->
destroyed
=
1
;
}
GTK_OBJECT_CLASS
(
flowwidgetgtk_parent_class
)
->
destroy
(
object
);
}
...
...
@@ -371,6 +377,7 @@ GtkWidget *flowwidgetgtk_new(
w
->
client_data
=
client_data
;
w
->
scroll_h
=
0
;
w
->
scroll_v
=
0
;
w
->
destroyed
=
0
;
return
(
GtkWidget
*
)
w
;
}
...
...
xtt/lib/ge/src/ge_dyn.cpp
View file @
ac3c9134
...
...
@@ -267,6 +267,7 @@ static char *dyn_mask_to_bits( unsigned int value, int noofbits)
return
str
;
}
// Replace " to \"
char
*
GeDyn
::
cmd_cnv
(
char
*
instr
)
{
...
...
@@ -435,6 +436,16 @@ GeDyn::GeDyn( const GeDyn& x) :
// update_elements();
}
GeDyn
::~
GeDyn
()
{
GeDynElem
*
elem
,
*
next
;
for
(
elem
=
elements
;
elem
;
elem
=
next
)
{
next
=
elem
->
next
;
delete
elem
;
}
}
void
GeDyn
::
save
(
ofstream
&
fp
)
{
fp
<<
int
(
ge_eSave_Dyn
)
<<
endl
;
...
...
xtt/lib/ge/src/ge_dyn.h
View file @
ac3c9134
...
...
@@ -666,6 +666,8 @@ class GeDyn {
//! Copy constructor.
GeDyn
(
const
GeDyn
&
x
);
~
GeDyn
();
//! Get list of attributes.
/*!
\param object Object.
...
...
xtt/lib/glow/gtk/glow_growwidget_gtk.cpp
View file @
ac3c9134
...
...
@@ -66,6 +66,7 @@ struct _GrowWidgetGtk {
gint
scroll_timerid
;
glow_sScroll
scroll_data
;
int
scroll_configure
;
int
destroyed
;
};
struct
_GrowWidgetGtkClass
{
...
...
@@ -269,10 +270,14 @@ static void growwidgetgtk_destroy( GtkObject *object)
{
GrowWidgetGtk
*
grow
=
(
GrowWidgetGtk
*
)
object
;
if
(
grow
->
scroll_timerid
)
g_source_remove
(
grow
->
scroll_timerid
);
if
(
grow
->
is_navigator
&&
grow
->
grow_ctx
)
{
((
GrowCtx
*
)
grow
->
grow_ctx
)
->
no_nav
=
1
;
if
(
!
grow
->
destroyed
)
{
if
(
grow
->
scroll_timerid
)
g_source_remove
(
grow
->
scroll_timerid
);
if
(
grow
->
is_navigator
&&
grow
->
grow_ctx
)
((
GrowCtx
*
)
grow
->
grow_ctx
)
->
no_nav
=
1
;
else
delete
(
GlowDrawGtk
*
)
grow
->
draw_ctx
;
grow
->
destroyed
=
1
;
}
GTK_OBJECT_CLASS
(
growwidgetgtk_parent_class
)
->
destroy
(
object
);
}
...
...
@@ -388,6 +393,7 @@ GtkWidget *growwidgetgtk_new(
w
->
client_data
=
client_data
;
w
->
scroll_h
=
0
;
w
->
scroll_v
=
0
;
w
->
destroyed
=
0
;
return
(
GtkWidget
*
)
w
;
}
...
...
xtt/lib/glow/src/glow_ctx.cpp
View file @
ac3c9134
...
...
@@ -131,6 +131,7 @@ void GlowCtx::delete_all()
remove
(
element
);
select_remove
(
element
);
move_remove
(
element
);
object_deleted
(
element
);
delete
element
;
i
--
;
}
...
...
xtt/lib/xtt/gtk/xtt_xnav_gtk.cpp
View file @
ac3c9134
...
...
@@ -125,7 +125,8 @@ XNavGtk::~XNavGtk()
for
(
int
i
=
0
;
i
<
brow_cnt
;
i
++
)
{
brow_stack
[
i
]
->
free_pixmaps
();
brow_DeleteSecondaryCtx
(
brow_stack
[
i
]
->
ctx
);
if
(
i
!=
0
)
brow_DeleteSecondaryCtx
(
brow_stack
[
i
]
->
ctx
);
delete
brow_stack
[
i
];
}
collect_brow
->
free_pixmaps
();
...
...
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