Commit 258cf0fb authored by Guido Gunther's avatar Guido Gunther Committed by Sebastian Krzyszkowiak
Browse files

notifications: Don't leak app_icon

Signed-off-by: Guido Gunther's avatarGuido Günther <>
parent ff0191c3
......@@ -113,12 +113,24 @@ evbox_button_press_event_cb (PhoshNotification *self, GdkEventButton *event)
static void
phosh_notification_finalize (GObject *object)
PhoshNotification *self = PHOSH_NOTIFICATION (object);
g_clear_pointer (&self->app_icon, g_free);
G_OBJECT_CLASS (phosh_notification_parent_class)->finalize (object);
static void
phosh_notification_class_init (PhoshNotificationClass *klass)
GObjectClass *object_class = (GObjectClass *)klass;
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
object_class->finalize = phosh_notification_finalize;
object_class->set_property = phosh_notification_set_property;
object_class->get_property = phosh_notification_get_property;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment