Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorota Czaplejewicz
gtk
Commits
74a19d9f
Commit
74a19d9f
authored
Dec 27, 2005
by
Matthias Clasen
Browse files
some more slice allocation
parent
e572ab94
Changes
1
Hide whitespace changes
Inline
Side-by-side
gtk/gtktextbtree.c
View file @
74a19d9f
...
...
@@ -4758,7 +4758,7 @@ node_data_new (gpointer view_id)
{
NodeData
*
nd
;
nd
=
g_new
(
NodeData
,
1
);
nd
=
g_
slice_
new
(
NodeData
);
nd
->
view_id
=
view_id
;
nd
->
next
=
NULL
;
...
...
@@ -4772,26 +4772,18 @@ node_data_new (gpointer view_id)
static
void
node_data_destroy
(
NodeData
*
nd
)
{
g_
free
(
nd
);
g_
slice_free
(
NodeData
,
nd
);
}
static
void
node_data_list_destroy
(
NodeData
*
nd
)
{
NodeData
*
iter
;
NodeData
*
next
;
iter
=
nd
;
while
(
iter
!=
NULL
)
{
next
=
iter
->
next
;
node_data_destroy
(
iter
);
iter
=
next
;
}
g_slice_free_chain
(
NodeData
,
nd
,
next
);
}
static
NodeData
*
node_data_find
(
NodeData
*
nd
,
gpointer
view_id
)
node_data_find
(
NodeData
*
nd
,
gpointer
view_id
)
{
while
(
nd
!=
NULL
)
{
...
...
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