chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
39fe101
)
don't leak list of children
author
rjk@greenend.org.uk
<>
Sun, 29 Jul 2007 16:55:11 +0000
(17:55 +0100)
committer
rjk@greenend.org.uk
<>
Sun, 29 Jul 2007 16:55:11 +0000
(17:55 +0100)
disobedience/queue.c
patch
|
blob
|
blame
|
history
diff --git
a/disobedience/queue.c
b/disobedience/queue.c
index f1df8f81187f499d8492028b82d8789bb595714d..9423252ca0ccc94be6f24077486892a8b6460d38 100644
(file)
--- a/
disobedience/queue.c
+++ b/
disobedience/queue.c
@@
-849,7
+849,7
@@
static void remove_drag_targets(struct queuelike *ql) {
static void redisplay_queue(struct queuelike *ql) {
struct queue_entry *q;
int row, col;
static void redisplay_queue(struct queuelike *ql) {
struct queue_entry *q;
int row, col;
- GList *c;
+ GList *c
, *children
;
const char *name;
GtkRequisition req;
GtkWidget *w;
const char *name;
GtkRequisition req;
GtkWidget *w;
@@
-858,7
+858,7
@@
static void redisplay_queue(struct queuelike *ql) {
D(("redisplay_queue"));
/* Eliminate all the existing widgets and start from scratch */
D(("redisplay_queue"));
/* Eliminate all the existing widgets and start from scratch */
- for(c = gtk_container_get_children(GTK_CONTAINER(ql->mainlayout));
+ for(c =
children =
gtk_container_get_children(GTK_CONTAINER(ql->mainlayout));
c;
c = c->next) {
/* Destroy both the label and the eventbox */
c;
c = c->next) {
/* Destroy both the label and the eventbox */
@@
-869,6
+869,7
@@
static void redisplay_queue(struct queuelike *ql) {
DW(event_box);
gtk_widget_destroy(GTK_WIDGET(c->data));
}
DW(event_box);
gtk_widget_destroy(GTK_WIDGET(c->data));
}
+ g_list_free(children);
/* Adjust the row count */
for(q = ql->q, ql->nrows = 0; q; q = q->next)
++ql->nrows;
/* Adjust the row count */
for(q = ql->q, ql->nrows = 0; q; q = q->next)
++ql->nrows;