← Back to team overview

dx-packages team mailing list archive

[Bug 356956] Re: gchar* defaults_get_ allocates memory that is almost never freed

 

** Project changed: notify-osd => notify-osd (Ubuntu)

** Changed in: notify-osd (Ubuntu)
    Milestone: ubuntu-9.10 => None

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to notify-osd in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/356956

Title:
  gchar* defaults_get_ allocates memory that is almost never freed

Status in “notify-osd” package in Ubuntu:
  Fix Released

Bug description:
  The functions below utilize g_object_get to retrieve a gchar*
  property. The returned property is a new string that must be freed, it
  almost never is. I started working on a patch to modify bubble.c to
  free strings, but it became very extensive, I think perhaps you guys
  might want to consider minor implementation changes :)

  The list of functions:

  defaults_get_bubble_shadow_color
  defaults_get_bubble_bg_color
  defaults_get_bubble_bg_opacity
  defaults_get_bubble_hover_opacity
  defaults_get_content_shadow_color
  defaults_get_text_font_face
  defaults_get_text_title_color
  defaults_get_text_body_color

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/notify-osd/+bug/356956/+subscriptions