Re: can someone help me with this memory leak please



on 2/19/01 6:29 AM, vinny at vinny matsvin com wrote:

> gtk_object_ref (GTK_OBJECT (dialog_window));

There's a possible leak. There's no need to ref a GtkWindow. Windows are
owned by "themselves" in a way. They will unref themselves when they are
destroyed (like when the dialog is closed).

It's true that you unref in both of your callbacks, bu there are other ways
to close a window besides "finish" and "cancel" from the druid itself.

But maybe it's something else.

    -- Darin





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]