memleak in plugins/orientation/gsd-orientation-manager.c
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-nexus7 |
New
|
Undecided
|
Unassigned | ||
gnome-settings-daemon (Ubuntu) |
Fix Released
|
High
|
Jani Monoses | ||
Raring |
Fix Released
|
High
|
Jani Monoses |
Bug Description
in plugins/
a proposed patch:
--- gsd-orientation
+++ gsd-orientation
@@ -438,13 +438,19 @@
static gboolean mpu_timer(
int x, y;
static gboolean first = TRUE;
+ gchar *filename_x = NULL;
+ gchar *filename_y = NULL;
OrientationUp orientation = manager-
if (manager-
- x = read_sysfs_
- y = read_sysfs_
+ filename_x = g_build_
+ filename_y = g_build_
+ x = read_sysfs_
+ y = read_sysfs_
+ g_free(filename_x);
+ g_free(filename_y);
if (x > MPU_THRESHOLD)
orientation = ORIENTATION_NORMAL;
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: gnome-settings-
ProcVersionSign
Uname: Linux 3.8.0-5-generic x86_64
ApportVersion: 2.8-0ubuntu4
Architecture: amd64
Date: Wed Feb 13 10:36:35 2013
MarkForUpload: True
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: gnome-settings-
UpgradeStatus: Upgraded to raring on 2012-01-31 (378 days ago)
Related branches
tags: | added: patch |
Added a nexus7 task since it's caused by the distro patch to make orientation sensor work on the Nexus.